Example:
package main
import (
"github.com/JesusIslam/goinblue"
"fmt"
)
func main() {
myApiKey := "thisisyourapikey"
email := &goinblue.Email{
To: map[string]string{
"[email protected]": "Mr. To",
},
Subject: "Test",
From: []string{
"[email protected]", "From",
},
Text: "This is just a test.",
}
client := goinblue.NewClient(myApiKey)
res, err := client.SendEmail(email)
if err != nil {
panic(err)
}
fmt.Println(res)
}