LogSendEmail
Sends email with log to comma-separated list of recipients.
Member of namespace
Maintenance ManagerSyntax
bool LogSendEmail (bool asattachment, string addressFrom, string addressTo, string subject, string user, string password, string domain, string server, string port)Parameters
- asattachment
- Type: bool
- addressFrom
- Type: string
- addressTo
- Type: string
- subject
- Type: string
- user
- Type: string
- password
- Type: string
- domain
- Type: string
- server
- Type: string
- port
- Type: string
Parameters
All parameters support Smart parameters.- asattachment: Send the log as attachment to the email.
- addressFrom: Address From (Optional). Default value: currentUser@currentDomain.
- addressTo: Comma-separated list of recipients.
- subject: email subject (Optional). Default value: 'NENU notification current_date_and_time'.
- user: Mail user name (Optional). Default value: current user credentials.
- password: Mail user password (Optional). Default value: current user credentials.
- domain: Mail user domain (Optional). Default value: current domain.
- server: Mail Server name (Optional). Default value: mail.current_domain.
- port: Mail Server Port number (Optional). Default value: 25.
Returns
True, if the email is sent. Otherwise, False.Level
Any level.Details
Sends an email by using the SMTP protocol. As Maintenance Manager actions run, an in-memory log tracks each of the Maintenance Manager actions that are called and their parameters. The LogSendEmail action places the action activity information into an email and send it.- Example:
-
LogSendEmail("jsmith@somewhere.com", "jdoe@somewhere.com,mmoore@somewhere.com", "", "", "", "", "", "")
Important: To support the removal of basic authentication from
SMTP,
LogSendEmail () requires a custom variable NenuEmailSSL to
be created in Datacap Application Manager. Instructions to support the removal of basic authentication from SMTP:
- Open the application in Datacap Application Manager.
- Under the Custom Values tab, General string values section, create a new value,
NenuEmailSSL.
For example:
Value Name: NenuEmailSSL, Value: True
