#GOMAIL
Service that will allow us to connect to the MailGun API to send mails in a practical and fast way.
* Multiple sending of emails.
* Multiple answers.
The requests are sent through the POST method, to the endPoint:
Every request must have the following structure:
{
"data" : [
{
"from" : "[email protected]",
"subject" : "Plain content",
"body" : "Hello World",
"to" : "[email protected]"
},
{
"from" : "[email protected]",
"subject" : "Html content",
"body" : "<b>Hello</b><br>World",
"to" : "[email protected]"
}
]
}
Once completed the shipments, GOMAIL will give a response with the following structure:
{
"responses": [
{
"id": "<[email protected]>",
"to": "[email protected]",
"msg": "Queued. Thank you."
},
{
"id": "<[email protected]>",
"to": "[email protected]",
"msg": "Queued. Thank you."
}
]
}