mail_provider

package
v0.0.0-...-dcfa3c0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailerSend

type MailerSend struct {
	Client *mailersend.Mailersend
}

func NewMailerSendProvider

func NewMailerSendProvider() (*MailerSend, error)

func (*MailerSend) SendMailWithTemplate

func (m *MailerSend) SendMailWithTemplate(subject string, templateID string, fromMailDetails types.MailDetails, toMailDetails []types.MailDetails, templateVariables map[string]string) error

type SMTPMailer

type SMTPMailer struct {
	Auth     smtp.Auth
	HostAddr string
	EmailID  string
}

func NewSMTPMailerProvider

func NewSMTPMailerProvider() (*SMTPMailer, error)

func (*SMTPMailer) SendMailWithTemplate

func (m *SMTPMailer) SendMailWithTemplate(subject string, templateID string, fromMailDetails types.MailDetails, toMailDetails []types.MailDetails, templateVariables map[string]string) error

Jump to

Keyboard shortcuts

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