Help us shape the future of Go! Take the 2026 Go Developer Survey

smtp

package
v0.112.13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPService

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

func NewSMTPService

func NewSMTPService(serverAddr, serverUser, serverKey, fromEmail, fromName, supportEmail string) (*SMTPService, error)

NewSMTPService creates a new service which sends emails

func (*SMTPService) IsValid

func (s *SMTPService) IsValid() bool

func (*SMTPService) SendExpiringTokenEmail

func (s *SMTPService) SendExpiringTokenEmail(ctx context.Context, emails []string, data email.ExpiringTokenEmailData) error

func (*SMTPService) SendTemplateEmail

func (s *SMTPService) SendTemplateEmail(ctx context.Context, to, templateAlias string, templateModelData interface{}, bccSupport bool) error

func (*SMTPService) SendTemplateEmailBCC

func (s *SMTPService) SendTemplateEmailBCC(ctx context.Context, bcc, templateAlias string, templateModelData interface{}, bccSupport bool) error

func (*SMTPService) SendTenantInviteEmail

func (s *SMTPService) SendTenantInviteEmail(ctx context.Context, to string, data email.TenantInviteEmailData) error

func (*SMTPService) SendTenantResourceLimitAlert

func (s *SMTPService) SendTenantResourceLimitAlert(ctx context.Context, emails []string, data email.ResourceLimitAlertData) error

func (*SMTPService) SendWorkflowRunFailedAlerts

func (s *SMTPService) SendWorkflowRunFailedAlerts(ctx context.Context, emails []string, data email.WorkflowRunsFailedEmailData) error

Jump to

Keyboard shortcuts

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