- Go version 1.14
- The Mailazy account, accessible here.
import "github.com/mailazy/mailazy-go"
senderClient := mailazy.NewSenderClient("access_key", "access_secret")
to := "[email protected]"
from := "Sender <[email protected]>"
subject := "Sending with mailazy is easy!"
textContent := ""
htmlContent := ""
req := mailazy.NewSendMailRequest(to, from, subject, textContent, htmlContent)
resp, err := senderClient.Send(req)