Documentation ¶
Index ¶
- func CheckIsEmptyCfg(cfg interface{}) bool
- type ConfigEmailAWSSES
- type ConfigEmailGmail
- type ConfigEmailMailGun
- type ConfigEmailSMTPSSL
- type ConfigEmailSendgrid
- type GmailLogin
- type SDK
- type SDKConfigAWSSES
- type SDKConfigGmail
- type SDKConfigMailGun
- type SDKConfigSMTPSSL
- type SDKConfigSengrid
- type SMTPLoginSSL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsEmptyCfg ¶
func CheckIsEmptyCfg(cfg interface{}) bool
CheckIsEmptyCfg check if config is empty
Types ¶
type ConfigEmailAWSSES ¶
type ConfigEmailAWSSES struct { EmailFrom string EmailTo string Subject string ContentPlainText string ContentHTML string }
ConfigEmailAWSSES configuration of send.
type ConfigEmailGmail ¶
ConfigEmailGmail configuration of send
type ConfigEmailMailGun ¶
type ConfigEmailMailGun struct { EmailTo string EmailFrom string ContentPlainText string Subject string }
ConfigEmailMailGun configuration of send
type ConfigEmailSMTPSSL ¶
type ConfigEmailSMTPSSL struct { EmailFrom string EmailTo string Subject string ContentPlainText string ContentHTML string }
ConfigEmailSMTPSSL configuration of send.
type ConfigEmailSendgrid ¶
type ConfigEmailSendgrid struct { EmailTo string EmailFrom string EmailToName string EmailFromName string ContentHTML string ContentPlainText string Subject string }
ConfigEmailSendgrid configuration of send
type GmailLogin ¶
GmailLogin username and password for gmail
type SDK ¶
type SDK struct { Mailgun mailgun.Mailgun Sendgrid *sendgrid.Client Gmail GmailLogin AWSSES *ses.SES SMTPSSL SMTPLoginSSL }
SDK wrapper of APIs
type SDKConfigAWSSES ¶
type SDKConfigAWSSES struct { SecretKey string AccessKey string Region string SDKName string Delay time.Duration ConfigEmail ConfigEmailAWSSES }
SDKConfigAWSSES cfg SDKs
func NewMailerAWSSES ¶
func NewMailerAWSSES(accesskey string, secretkey string, region string) *SDKConfigAWSSES
NewMailerAWSSES new instance of AWS
type SDKConfigGmail ¶
type SDKConfigGmail struct { User string Password string SDKName string Delay time.Duration ConfigEmail ConfigEmailGmail }
SDKConfigGmail cfg SDKs
func NewMailerGmail ¶
func NewMailerGmail(user string, password string) *SDKConfigGmail
NewMailerGmail new instace for Gmail login
type SDKConfigMailGun ¶
type SDKConfigMailGun struct { MailGunDomain string MailGunAPIKey string MailGunPUBKey string SDKName string Delay time.Duration ConfigEmail ConfigEmailMailGun }
SDKConfigMailGun cfg SDKs
func NewMailerMailGun ¶
func NewMailerMailGun(domain string, apikey string, pubkey string) *SDKConfigMailGun
NewMailerMailGun new instance of MailGun
func (*SDKConfigMailGun) SendMail ¶
func (cfg *SDKConfigMailGun) SendMail() error
SendMail sendemail
type SDKConfigSMTPSSL ¶
type SDKConfigSMTPSSL struct { User string Password string Server string Port string SDKName string Delay time.Duration ConfigEmail ConfigEmailSMTPSSL }
SDKConfigSMTPSSL cfg SDKs
func NewMailerSMTPSSL ¶
func NewMailerSMTPSSL(user string, password string, server string, port string) *SDKConfigSMTPSSL
NewMailerSMTPSSL new instace for SMTP login
func (*SDKConfigSMTPSSL) SendMail ¶
func (cfg *SDKConfigSMTPSSL) SendMail() error
SendMail sendemail
type SDKConfigSengrid ¶
type SDKConfigSengrid struct { SendGridAPIKey string SDKName string Delay time.Duration ConfigEmail ConfigEmailSendgrid }
SDKConfigSengrid cfg SDKs
func NewMailerSendGrid ¶
func NewMailerSendGrid(apikey string) *SDKConfigSengrid
NewMailerSendGrid new instance of SendGrid
func (*SDKConfigSengrid) SendMail ¶
func (cfg *SDKConfigSengrid) SendMail() error
SendMail sendemail