mail

package
v0.0.0-...-d4bbf0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMailService

func NewMailService() services.IMailService

Types

type ImportNotificationTplData

type ImportNotificationTplData struct {
	PublicUrl     string
	Duration      string
	NumHeartbeats int
}

type MailService

type MailService struct {
	// contains filtered or unexported fields
}

func (*MailService) SendImportNotification

func (m *MailService) SendImportNotification(recipient *models.User, duration time.Duration, numHeartbeats int) error

func (*MailService) SendPasswordReset

func (m *MailService) SendPasswordReset(recipient *models.User, resetLink string) error

func (*MailService) SendReport

func (m *MailService) SendReport(recipient *models.User, report *models.Report) error

func (*MailService) SendSubscriptionNotification

func (m *MailService) SendSubscriptionNotification(recipient *models.User, hasExpired bool) error

func (*MailService) SendWakatimeFailureNotification

func (m *MailService) SendWakatimeFailureNotification(recipient *models.User, numFailures int) error

type NoopSendingService

type NoopSendingService struct{}

func (*NoopSendingService) Send

func (n *NoopSendingService) Send(mail *models.Mail) error

type PasswordResetTplData

type PasswordResetTplData struct {
	ResetLink string
}

type ReportTplData

type ReportTplData struct {
	Report *models.Report
}

type SMTPSendingService

type SMTPSendingService struct {
	// contains filtered or unexported fields
}

func NewSMTPSendingService

func NewSMTPSendingService(config conf.SMTPMailConfig) *SMTPSendingService

func (*SMTPSendingService) Send

func (s *SMTPSendingService) Send(mail *models.Mail) error

type SendingService

type SendingService interface {
	Send(*models.Mail) error
}

type SubscriptionNotificationTplData

type SubscriptionNotificationTplData struct {
	PublicUrl           string
	HasExpired          bool
	DataRetentionMonths int
}

type WakatimeFailureNotificationNotificationTplData

type WakatimeFailureNotificationNotificationTplData struct {
	PublicUrl   string
	NumFailures int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL