Email Sender

The Email Sender component uses the SMTP protocol to send a rich HTML formatted email from the Translator using the SMTP Library. This component includes an example of sending MIME-encoded email attachments, by simply formatting the body of the SMTP message with both MIME headers and encoded attachment contents.

See Create a Component if you need a refresher.

Enter the following custom fields into the component card:

  • EmailServer - by default is set to send from a Gmail smtp server (smtp.gmail.com:587).

  • EmailUser - set to your smtp server username/email.

  • ServerPassword - set to your smtp server password. For Gmail, with two-factor authentication enabled, the password is required to be an App Password.

  • SenderEmail - Add an email to use for the sender.

  • Recipients - Add the email addresses of one or more recipients. If you want multiple recipients, they must be provided as a comma-separated string.

Screen Shot 2024-03-06 at 10.15.18 AM.png
Screen Shot 2024-03-06 at 10.11.37 AM.png

The component is designed to be simple to adapt. The SMTP library takes care of constructing the MIME headers and attachments. By default, the component uses a sample HTML and Iguana logo PNG included in the project. Simply modify the code in main.lua to change the content of your email.

Easily modify the Header, Body and Attachments for your email. SMTPsend takes these values and the configured component custom fields to send the email.

 

Related pages