Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 590 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 590 Bytes

Mailazy Logo

Prerequisites

  • Go version 1.14
  • The Mailazy account, accessible here.

Usage

import "github.com/mailazy/mailazy-go"

Example Usage

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)