/
SMTP Library
SMTP Library
The SMTP Library is an importable library you can add to projects to use the SMTP protocol to send a rich HTML formatted emails from the Translator. This library is used in the Email Sender component.
Use the Translator’s built in help to review how to use each function:
SMTPsend is used to send a rich HTML-formatted email.
SMTPbuildMime and SMTPaddAttachments are used to build MIME-encoded email attachments and headers.
-- Retrieve SMTP details from the component custom card
local Configs = component.fields()
-- Send an email. Set mime to true to send HTML-formatted emails,
-- emails with non-ASCII characters, or include attachments.
local Status, Response = SMTPsend{
server = Configs.EmailServer,
user = Configs.ServerUser,
password = Configs.ServerPassword,
sender = Configs.SenderEmail,
recipients = Configs.Recipients,
body = Body,
header = header,
attachments = attachments,
mime = true,
entity_type = 'text/html',
live = false
}
, multiple selections available,
Related content
Email Sender
Email Sender
More like this
EMAIL Library
EMAIL Library
More like this
Email Filter
Email Filter
More like this
IguanaX Notifications
IguanaX Notifications
More like this
To File
To File
More like this
IMAP Library
IMAP Library
More like this