Documentation
¶
Index ¶
- type SMTPService
- func (s *SMTPService) IsValid() bool
- func (s *SMTPService) SendExpiringTokenEmail(ctx context.Context, emails []string, data email.ExpiringTokenEmailData) error
- func (s *SMTPService) SendTemplateEmail(ctx context.Context, to, templateAlias string, templateModelData interface{}, ...) error
- func (s *SMTPService) SendTemplateEmailBCC(ctx context.Context, bcc, templateAlias string, templateModelData interface{}, ...) error
- func (s *SMTPService) SendTenantInviteEmail(ctx context.Context, to string, data email.TenantInviteEmailData) error
- func (s *SMTPService) SendTenantResourceLimitAlert(ctx context.Context, emails []string, data email.ResourceLimitAlertData) error
- func (s *SMTPService) SendWorkflowRunFailedAlerts(ctx context.Context, emails []string, data email.WorkflowRunsFailedEmailData) error
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 (*SMTPService) SendTemplateEmailBCC ¶
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
Click to show internal directories.
Click to hide internal directories.