Skip to content

qsc-jhndnn/aws-ses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS Simple Email Service (SES) module

_Module for sending email using https://aws.amazon.com/ses/

SendEmail(email)

Sends email defined by table email. The arguement has the following fields

  • AccessId - AWS Access ID
  • AccessKey - AWS Access Key
  • Destination - Destination email - ie "[email protected]"
  • Message - string of message content
  • Region - 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
})

About

Q-SYS AWS Simple Email Service module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages