Send Email
Prerequisities
To send email you need :
- either to register a custom domain (paid)
- or authorize a sandbox recipient (see below).
Authorize a sandbox recipient
- Go to Mailgun Domains.
- Pick the sandbox domain (there should be only one in a free account).
- Enter the email you would like to use for testing and hit Save recipient button.
- Confirm the verification email in your email inbox.

Send Email
- In administration, go to Email channel detail created in the previous step.
- Copy the "Channel ID" in detail page for later use.
- You will need your Amio account
access_token
. Go to Settings - API and copy your secret access token. - Send email to your user using Send Text Message API.
curl -X POST \
https://api.amio.io/v1/messages \
-H 'authorization: Bearer {{access_token}}' \
-H 'content-type: application/json' \
-d '{
"channel": {
"id": "{{channel_id}}"
},
"contact": {
"name": "Bill Crosby",
"email": "[email protected]"
},
"content": {
"type": "text",
"payload": "Hello world!"
},
"metadata": {
"email": {
"subject": "Hello",
"from": {
"name": "Your Company",
"email": "[email protected]"
},
"reply_to": {
"name": "Customer Support",
"email": "[email protected]"
}
}
}
}
- Open your test email inbox and verify that the message was received.
Postman
Use Postman to test all different message types. Don't forget to set environment properties:
access_token
,email.channel.id
andemail.contact.id
.
Updated about 3 years ago