GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Twelve — Internet Functions (continued)
Overview
The EmailSetupSMTP function sends a simple email. The body can be text or HTML.
Syntax/Parameters
Syntax
int = EmailSetupSMTP ( string host, string email, string user_id, string
user_pw,
[int port],
[string alias] );
Parameters
host
A string containing the host name which is a combination of the domain plus a possible prefix such as “mail” or “smtp”. Check the provided/server for the complete name.
A string containing the email name to me sent from.
user_id
A string specifying the user ID.
user_pw
A string specifying the user password.
port
An optional int specifying the port. The default is 25.
alias
An optional string specifying alias name. This is presently not used.
Return Value
Returns an int as ERROR_NONE (0) or a formatted error code on failure. Use the GetLastError and GetLastErrorMessage functions to retrieve additional details.
Note that this function sets up the parameters. A failure on login is not reported.
Remarks
Depending on the application, the SMTP settings may be initially set by the application preference. This function overrides the existing settings or sets the initial setting. It does not set the preferences.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.