Skip to content

Relay incoming http call to send mail with smtp

License

Notifications You must be signed in to change notification settings

Izzur/mail-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mail Relay

API to relay incoming HTTP call to send SMTP email

Quick Start

go run main.go

Build

go build

Example Body

{
    "personalizations": [
        {
            "to": [
                {
                    "email": "[email protected]",
                    "name": "John Doe"
                }
            ],
            "subject": "Hello, World!"
        }
    ],
    "content": [
        {
            "type": "text/plain",
            "value": "Heya!"
        }
    ],
    "from": {
        "email": "[email protected]",
        "name": "Sam Smith"
    },
    "reply_to": {
        "email": "[email protected]",
        "name": "Sam Smith"
    }
}