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": "john.doe@example.com",
                    "name": "John Doe"
                }
            ],
            "subject": "Hello, World!"
        }
    ],
    "content": [
        {
            "type": "text/plain",
            "value": "Heya!"
        }
    ],
    "from": {
        "email": "sam.smith@example.com",
        "name": "Sam Smith"
    },
    "reply_to": {
        "email": "sam.smith@example.com",
        "name": "Sam Smith"
    }
}