Skip to content

v0.1.5

Choose a tag to compare

@kayode0x kayode0x released this 03 May 20:46
· 4 commits to main since this release

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)