Sending email is pretty simple in Go. It helps to understand the RFC 822, which specifies the style an email need to be in, the code below sends a RFC 822 compliant email.
package main
import (
"fmt"
"net/smtp"
)
func main() {
// user we are authorizing as
...