Skip to content

dev-lusaja/Gomail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

Request format

The requests are sent through the POST method, to the endPoint:

http://ip:port/api/v1/gomail

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]"
		}
	]
}

Response format

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."
    }
  ]
}

About

MailGun service used for sending email

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages