[Email_SMTP->Send] sends a single email message through an open SMTP connection. Data for the parameters of the tag is usually returned from an [Email_Compose] object.
The tag requires three parameters: -From is the email address of the person sending the message, -Recipients is an array of email addresses including every -To, -CC, and -BCC recipient of the message, and -Message is the MIME encoded body of the email message.
The tag returns True if the message sent successfully or False otherwise.
[Var: 'Email' = (Email_Compose: ...)]
[Var: 'SMTP' = (Email_SMTP)]
[$SMTP->(Open: -Host='smtp.example.com', -Username='JohnDoe', -Password='Example')]
[$SMTP->(Send: -From=$Email->From, -Recipients=$Email->Recipients, -Message=$Email->Data)]
[$SMTP->Close]
See the Lasso 8 Language Guide for examples of how to use this tag.
Tag Link | [Email_SMTP->Send] | Category | |
---|---|---|---|
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft