Lasso Soft Inc. > Home

[Email_SMTP->Open]

[Email_SMTP->Open] opens a connection to a remote SMTP server so emails can be sent through it. The tag requires one parameter which is the -Host to connect to. An optional -Username and -Password can be specified if authorization is required on the SMTP server.

Optional parameters include -Timeout and -Port. Normally the default values for these parameters are used, but they can be changed if necessary.

  • Syntax
  • Parameters
[Var: 'SMTP' = (Email_SMTP)]
[$SMTP->(Open: -Host='smtp.example.com', -Username='JohnDoe', -Password='Example')]
[$SMTP->(Send: ...)]
[$SMTP->Close]
Required Parameters
-Host The IP address or DNS host name of the SMTP server.
Optional Parameters
-Port The port for the SMTP server (defaults to 25)
-Timeout Optional timeout for the SMTP server. Defaults to 15 seconds.
-Username The username for the SMTP server.
-Password The password for the SMTP server.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link [Email_SMTP->Open] Category Email
Type Member Data Source Any
Support Preferred Version 8.0
Output Type Boolean Security Tag
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft