_Module for sending email using https://aws.amazon.com/ses/
Sends email defined by table email
. The arguement has the following fields
AccessId
- AWS Access IDAccessKey
- AWS Access KeyDestination
- Destination email - ie"[email protected]"
Message
- string of message contentRegion
- AWS Server region - ie"us-east-1"
Source
- Source email - ie"[email protected]"
Example of sending using SES email service
ses = require("aws-ses")
local destination = "[email protected]"
local source = "[email protected]"
local subject = "This is a subject"
local content = "and some content\n\nand another line"
local message = string.format("Subject: %s\n\n%s", subject, message)
ses.SendEmail({
Region = "us-east-1",
Source = source,
Destination = destination,
Message = message,
AccessKey = AWS_ACCESS_KEY,
AccessId = AWS_ACCESS_ID
})