Documentation ¶
Index ¶
- func NewEmail(from, subject, body, to, firstName, lastName string, ...) *contracts.EmailContract
- type MailClient
- type Mailer
- func (m *Mailer) InviteEmailHTML(firstName, lastName string) (string, error)
- func (m *Mailer) InviteEmailPlaintext(firstName, lastName string) (string, error)
- func (m *Mailer) ResetEmailHTML(firstName, lastName string) (string, error)
- func (m *Mailer) ResetEmailPlaintext(firstName, lastName string) (string, error)
- func (m *Mailer) WelcomeEmailHTML(firstName, lastName string) (string, error)
- func (m *Mailer) WelcomeEmailPlaintext(firstName, lastName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MailClient ¶
type MailClient struct { Mailer *Mailer Client *sendgrid.Client Logger *zap.Logger Telemery *counters.Telemetry }
func NewMailClient ¶
func (*MailClient) SendEmail ¶
func (client *MailClient) SendEmail(email contracts.EmailContract) (string, error)
type Mailer ¶
type Mailer struct {
Hermes hermes.Hermes
}
func (*Mailer) InviteEmailHTML ¶
InviteEmailHTML sends a sample invite email html template
func (*Mailer) InviteEmailPlaintext ¶
InviteEmailPlaintext sends a sample invite email plaintext template
func (*Mailer) ResetEmailHTML ¶
ResetEmailHTML sends a sample reset email html template
func (*Mailer) ResetEmailPlaintext ¶
ResetEmailPlaintext sends a sample reset plaintext template
func (*Mailer) WelcomeEmailHTML ¶
WelcomeEmailHTML sends a sample welcome email html template
Click to show internal directories.
Click to hide internal directories.