ssl_smtp_example.go 0p�q>V �a}p>V package main import ( "fmt" "log" "net" "net/mail" "net/smtp" "crypto/tls" ) // SSL/TLS Email Example func main() { from := mail.Address{"", "username@example.tld"} to := mail.Address{"", "username@anotherexample.tld"} subj := "This is the email subject" body := "This is an example body.\n With two lines." // Setup headers headers := make(map[string]string) header
![Golang SSL SMTP Example](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)