Drag the EmailService from the palette and drop it on the Services group in the tree as shown below.
Now click on the plus sign to expand the EmailServices and then double click on the OutgoingAccount to bring up the property sheet.
OutgoingAccount property sheet view
The OutgoingAccount has the following properties that need changing from there default settings:
Hostname
This is the name of the mail server. In this example the host name is smtp.gmail.com
Port
This is the port number associated with the email account. Typically email outgoing account port numbers are port "25", however, if you leave the setting at its default value of "-1" the OutgoingAccount will search for and use a valid port. However Gmail uses a different port , so in the port textbox type 465.
Account
This is the name of the distinct account that is authorized for access to the "Hostname" mail server. For example, if you are using an email account named "jon@gmail.com", your account name is your full GMail address.
Password
This is the login credential for the GMail address specified in the Account field.
Enabled
This field allows you to activate or deactivate the account by choosing true or false, respectively.
Debug
This Boolean property turns Debug mode on true or off, as desired. When Debug is turned on, you can see detailed debug information in a station's standard output view (WorkbenchAX Platform > Application Director view) when the Station tries to send or receive email. This can be used to troubleshoot the accounts and faults.
Use Ssl
The Ssl (Secure Socket Layer) option is available on the OutgoingAccount starting in NiagaraAX-3.5. The option list allows you to disable Ssl (false) or enable it (true). Enable Ssl for communication with a host email server that requires it.
Niagara-AX, set up your "Outgoing Account" as pictured below:
Be sure to verify your DNS servers are correctly assigned .
To allow Gmail SMTP to work with the Niagara-AX email service, Gmail 2-step verification must be disabled. Please be warned that this will leave your Gmail account more vulnerable to outside intrusion. I recommend creating and utilizing a new Gmail account that will be solely used for SMTP relays.
On the top right, locate the "Account" icon.
Click the "My Account" button.
|
From the menu on the left select Signing in to Google
Locate "2-Step Verification".
Click the "Settings" hyperlink. To disable 2-Step Varication.