You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To make our codebase more organized, we deployed an AWS Lambda for sending emails. The Lambda can be easily invoked by sending an HTTP GET request to https://1wviw5yf8a.execute-api.us-east-1.amazonaws.com/default/sendEmail with the following body:

{
  "sender": "senderEmail@example.com",
  "recipient": "receipentEmail@example.com",
  "subject": "Subject",
  "bodyHtml": "Body HTML",
  "token":"!QR!$JDrR#xH#TD5fpl8"
}

The token is used for authentication purpose. The Lambda will be executed synchronously and will respond a string once it finishes. The response will be "Email sent." if the email is successfully sent and an error message otherwise.

  • No labels