Documentation ¶
Overview ¶
Package ses_go is a simple wrapper around Amazon's AWS library that provides a function to send email with SES.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Initializes aws session with specified key id, key secret and region. This function has to be called before sending an email. Returns error from aws library if session could not be created.
func SendHTMLEmail ¶
SendHTMLEmail sends email with HTML content to recipient from sender email address. The email will have specified subject. Content should be HTML text that is sent as the body of the email. Returns AWS email ID and error. If email ID could not be got, empty string is returned.
func SendHTMLEmailWithAttachment ¶ added in v0.2.0
func SendHTMLEmailWithAttachment(sender, recipient, subject, htmlContent, attachmentPath, attachmentName string) (string, error)
SendHTMLEmailWithAttachment sends email with HTML content and attachment to recipient from sender email address. The email will have specified subject. Content should be HTML text that is sent as the body of the email. `attachment` represents path to the attachment file. Returns AWS email ID and error. If email ID could not be got, empty string is returned.
Types ¶
This section is empty.