Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MailHost = os.Getenv("MAIL_HOST") MailPort = os.Getenv("MAIL_PORT") MailSecure = os.Getenv("MAIL_SECURE") MailUser = os.Getenv("MAIL_USER") MailPassword = os.Getenv("MAIL_PASSWORD") MailFrom = os.Getenv("MAIL_FROM") )
SMTP configuration
Functions ¶
func SendMail ¶
func SendMail(to, subject, htmlPath string, attachment []Attachments, data interface{}) error
SendMail function
Send email using SMTP with html template
Types ¶
type Attachments ¶
Attachments to send attachment
Click to show internal directories.
Click to hide internal directories.