The email OutgoingAccount component is required for sending emails from a station. This component is located in the email palette and should be added under the EmailService component, as shown below.
The OutgoingAccount has the following properties:
Hostname
This is the name of the mail server. For example mail.acme.com could be a Hostname.
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.
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 "joejones@acme.com" on the host described above, the account name is simply "joejones". The Hostname in this case could be "mail.acme.com".
Password
This is the login credential for the Account specified in the previous field. Increasing the pollrate value increases the time between polls. During the time between polls, emails may be queued (up to the max queue size) until the next poll time. At the next poll time all queued emails are sent.
Pollrate
This field allows you to specify how often the account executes a send action.
Enabled
This field allows you to activate or deactivate the account by choosing true or false, respectively.
Status
This is a read-only display of the condition of service. The status displays {ok} if the account is polling successfully. Other indications include:
{down} which means that the polling is unsuccessful, perhaps because of an incorrect Hostname, Password, or Account name.
{disabled} because the Enable property is set to false
Last Poll Success, Last Poll Failure
These two properties display the time (in hours and minutes) of the last polling success and failure.
Last Poll Failure Cause
This display-only field provides an error message to indicate a reason for polling failure.
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.
Transport
This field allows you to select from available options for email communication. The default setting and most common is SMTP.
Connection Timeout
This configurable field setting controls how long the station waits for a response from the mail server before generating an exception and setting the fault cause. It waits for the next scheduled poll and attempts to contact the mail server again at that frequency.
Use Authentication
This property allows you to specify that login credentials are required for sending any email. Sometimes authentication is not required for emails routed to recipients in the same domain. Setting this property to true makes the login credentials mandatory for any email.
Reply To
This field specifies the contents of the "From:" field in the email that is sent.
Persistent, Persistent Directory
Setting the Persistent property to true saves each queued email as an xml file in the designated persistence directory. Once the emails are actually sent, the xml files are deleted from the directory. The purpose of this is to keep a copy of the emails in the queue which would be lost if the station was stopped prior to the emails being sent. When the station restarts, emails are loaded from the "Persistent Directory" back to the queue.
Email Queue Tracking Properties
"Queue" is where emails reside while they are waiting to be sent. Assuming that the Account Status is "ok", typically, the length of time that an email is in the queue depends on the "Pollrate" setting. The following properties relate to the queue and mail management properties:
Allow Disabled Queuing
This property (when set to true) allows emails to reside in the queue even when the Enabled status is set to false.
Queue Size
This property refers to how many emails are currently in the queue (waiting to be sent). You can clear the queue at any time
by right-clicking on the appropriate outgoing account property
and selecting from the popup menu.
Max Queue Size
This property allows you to specify how many emails are allowed to occupy the queue.
Number Sent
This property displays the number of emails that have been sent. You can reset this number to zero at any time by right-clicking
on the appropriate outgoing account property
and selecting from the popup menu.
Max Sendable Per Day
This property allows you to specify how many emails may be sent in one day.
Number Discarded
This read-only property (NiagaraAX-3.5 and later) displays a value to indicate how many emails did not successfully send.
Last Discard
This read-only property (NiagaraAX-3.5 and later) displays a date and time value to indicate when the last email did failed to send.
Last Discard Cause
This read-only property (NiagaraAX-3.5 and later) displays an error message that indicates the cause of the last email send failure.
Copyright © 2000-2016 Tridium Inc. All rights reserved.