Send email
This endpoint allows the sending of emails by leveraging the Mailgun services implemented for AfriForum.
Reference - Mailgun Send email docs
Method and endpoint
POST /v1/send-email
Headers
| Header name | Header value |
|---|---|
| Authorization | Basic base64(username:password) |
| Content-type | multipart/form-data |
Body
Request schema
Note: the sender must use the my.afriforum.co.za domain, for example: teater@my.afriforum.co.za
| Key | Value |
|---|---|
| to | array[string]* |
| subject | string* |
| body | string* |
| sender | string* |
| cc | string |
| attachments | array[file] |
| replyto | string |
Sample request
| Key | Value |
|---|---|
| to | admin@lonelyviking.com |
| subject | This is the email subject |
| body | This is the body of the email |
| sender | info@my.afriforum.co.za |