Repository navigation
v0.1.5
New change
In SendTransactionalEmail and SendMultipleTransactionalEmails, by specifying the from and name fields, you can customize the from address and name of the email. If you don't specify these fields, the default address and name configured in your project settings will be used.
Example:
p, _ := plunk.New("<YOUR_SECRET_KEY>", nil)
payload := TransactionalEmailPayload{
From: "billing@useplunk.com",
Name: "Plunk Billing",
To: "hello@useplunk.com",
Subject: "Welcome!",
Body: "Hello",
}
res, _ := p.SendTransactionalEmail(payload)