Send emails in go through Exim (without smtp)?
问题 I'm currently using "gopkg.in/gomail.v2" to send email with following code found here package main import ( "bytes" "fmt" "gopkg.in/gomail.v2" ) func main() { m := gomail.NewMessage() m.SetHeader("From", "me@example.com") m.SetHeader("To", "you@example.com") m.SetAddressHeader("Bcc", "youbcc@example.com", "Bcc Email") m.SetHeader("Bcc", "anotherbcc@example.com", "yetbcc@example.com") m.SetHeader("Reply-To", "me@example.com") m.SetHeader("Subject", "Subject is to gomail to be discussed") body