Prerequisites
Using SDK
1
Install SDK
2
Initialize SDK
Get the API key from the weeSend dashboard and initialize the SDKIf you are running a self-hosted version of weeSend, pass the base URL as the
second argument:
3
Send Email
Custom headers are forwarded as-is. weeSend only manages theX-Weesend-Email-IDandReferencesheaders.
Adding contacts programatically
1
Get the contact book id
Get the contact book id from the weeSend dashboard. Copy the contact book id
2
Add contacts
3
Update contact