[Email_Send] queues an email message for sending. The email message is sent within a couple minutes by an automatic background process.
The current Email Queue can be viewed in Lasso Administration in the Monitor > Email section. Preferences can also be set here for whether emails should be logged, how many retries should be attempted per email, default host, and more.
The email tag requires that the -From, -Subject, and -Body parameters have values. The -Host parameter is required only if a default has not been established in Lasso Administration.
At least one of -To, -CC, and -BCC must contain valid email addresses. Multiple email addresses can be specified separated by commas, but use of the real name and email address is not supported.
The optional -Attachments parameter can be set to the fully qualified file path for a single file that should be included as an attachment to the email message.
The optional -ExtraMIMEHeaders parameter can be set to an array of name/value pairs which define extra headers that should be included with the email message. For example, a "Reply To" header could be included in this way.
[Email_Send: -Host='Host Name',
-To='Recipient Email Address',
-From='Sender Email Address',
-Subject='Email Subject',
-Body='Email Body Text']
[Email_Send: -Host='Host Name',
-To='Recipient Email Address',
-CC='Recipient Email Address',
-BCC='Recipient Email Address',
-From='Sender Email Address',
-Subject='Email Subject',
-Body='Email Body Text']
[Email_Send: -Host='Host Name',
-To='Recipient Email Address',
-From='Sender Email Address',
-Subject='Email Subject',
-Body='Email Body Text',
-Attachments='Attachment Path',
-ExtraMIMEHeaders='Headers Pair Array']
Use the [Email_Send] tag. The following example sends an email to administrator@example.com through the server mail.example.com each time the page is visited. The contents of the email is the current date and time.
[Email_Send: -Host='mail.example.com',
-To='administrator@example.com',
-From='administrator@example.com',
-Subject='A page visit!',
-Body=(Date_GetCurrentDate)]
Use the [Email_Send] tag. The following example sends an email to administrator@example.com through the server mail.example.com each time the page is visited. The contents of the format file format.lasso is used as the body of the email message.
[Email_Send: -Host='mail.example.com',
-To='administrator@example.com',
-From='administrator@example.com',
-Subject='A page visit!',
-Body=(Include: 'format.lasso')]
Tag Link | [Email_Send] | Category | Utility |
---|---|---|---|
Type | Process | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | None | Security | Tag |
Implementation | LDML | Sets | Lasso 6.0, Lasso 5.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