You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package dao |
|
|
|
import ( |
|
gomail "gopkg.in/gomail.v2" |
|
) |
|
|
|
// SendMail asynchronous send mail. |
|
func (d *Dao) SendMail(message *gomail.Message) (err error) { |
|
message.SetAddressHeader("From", d.c.Mail.From, "bbq") |
|
err = d.email.DialAndSend(message) |
|
return |
|
}
|
|
|