[Email_SMTP->Command] is a low-level tag that allows commands to be sent directly to an SMTP server. It is not usually necessary to call this tag since [SMTP->Open] handles authorization and [SMTP->Send] handles sending messages to the remote server.
The tag takes three parameters: -Send is the command to send to the remote server. -Expect is the expected return code (e.g. 250). If -Read is specified then the result of the command is returned by the tag, otherwise True or False is returned depending on whether the expected return code was found.
[Var: 'SMTP' = (Email_SMTP)]
[$SMTP->(Open: -Host='smtp.example.com', -Username='JohnDoe', -Password='Example')]
[$SMTP->(Command: -send = 'RSET\r\n', -expect = 250)]
[$SMTP->Close]
See the Lasso 8 Language Guide for examples of how to use this tag.
Tag Link | [Email_SMTP->Command] | Category | |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 8.0 |
Output Type | Boolean or String | 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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft