SendEmail
The SendEmail function is used to send emails to an SMTP server for distribution to recipients.
Electronic mail servers and other mail transfer agents use SMTP to send and receive mail messages. User-level client mail applications typically use SMTP only for sending messages to a mail server for relaying, as does this Linx function.
Properties
Content
Subject
The subject line of the email. This has to be a string that may not exceed 78 characters.
Body
The body of the email to be sent.
Attachments
Any attachments that need to be sent out with the email. This needs to point to files.
Credentials
Username
The username to log into the Inbox. This is commonly the email address.
Password
The password to log into the Inbox.
Options
Body format
The options are Text or HTML.
Enable SSL
SSL is required by some mail servers, including Gmail.
Port
The default port is 25, when SSL is enabled it is 587.
Priority
Not every email system supports message priority. Clients that do support it, commonly add an exclamation mark to that email or give the email otherwise a higher visibility in the Inbox.
Timeout
Send timeout in seconds.
Receivers
To
The main recipient.
CC
Carbon copied recipients. CC recipients are visible to other recipients of an email.
BCC
Blind carbon copied recipients. BCC recipients are not be visible to other recipients.
Sender
From
The From address.
Server
Smtp Server
The server IP address, network name or URL.
Sending Email with Gmail
For email providers using two-factor authentication (such as Gmail), you will need to complete additional steps to bypass further security settings.
To set up your Gmail account for use by your Linx applications, there are 2 options:
1. Allow less secure apps
In your Gmail account:
Select Sign-in and Security
Switch off 2-Step verification
Scroll down and set “Allow less secure apps” to “On”
OR
2. Create an App password
(This is the recommended option.)
Go to the Google Account section:
Select Security
Make sure 2-Step Verification is switched 'On'
Select App passwords
Verify yourself
Select 'Other'
Provide a name (e.g. Linx)
Click Generate
The password that you have to use in Linx will display
Note: After setting up your App password, you can switch 2-Step Verification 'Off' again.
In Linx Designer
Set the following properties:
Enable SSL
Port 587
SMTP server: smtp.gmail.com
Links
Linx Community: Email plugin configuration
Linx Community: Email filtering
Wikipedia: Simple Mail Transfer Protocol
The Mailman Inside Our Computers. Or: What Is Simple Mail Transfer Protocol?