Go, Golang, Backend, Email, Smtp.
err != nil { //Handle error } // Set the sender if err := client.Mail(emailFrom); err != nil { //Handle error } // Set the recipient if err := client.Rcpt(emailTo); err != nil { return } wc, err := client.Data() if err != nil { //Handle error } _, err = wc.Write([]byte(message)) if err != nil {