📬 Mailer for Go
package main
import (
"github.com/onerciller/go-mailer"
)
var config = mail.Config{
Host: "smtp.yandex.com.tr",
Username: "[email protected]",
Password: "PASSWORD",
Port: "587",
From: "[email protected]",
}
func main() {
mail := mail.New(config)
mail.SetTo("[email protected]", "[email protected]")
mail.SetSubject("this is subject")
mail.SetBody("this is body")
mail.Send()
}