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.
The subject line of the email. This has to be a string that may not exceed 78 characters.
The body of the email to be sent.
Any attachments that need to be sent out with the email. This needs to point to files.
The username to log into the Inbox. This is commonly the email address.
The password to log into the Inbox.
The options are Text or HTML.
SSL is required by some mail servers, including Gmail.
The default port is 25, when SSL is enabled it is 587.
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.
Send timeout in seconds.
The main recipient.
Carbon copied recipients. CC recipients are visible to other recipients of an email.
Blind carbon copied recipients. BCC recipients are not be visible to other recipients.
The From address.
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”
2. Create an App password
(This is the recommended option.)
Go to the Google Account section:
Make sure 2-Step Verification is switched 'On'
Select App passwords
Provide a name (e.g. Linx)
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:
SMTP server: smtp.gmail.com