| Tag Link | [Email_Send] | Category | |
|---|---|---|---|
| Type | Process | Source Available | Yes |
| Support | Preferred | Version | 5.0 |
| Change | Unchanged | Data Source | Any |
| Output Type | None | Security | Tag |
| Implementation | LDML | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[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
At least one of
The
The optional
The optional
[Email_Send:
[Email_Send:
[Email_Send:
| Required Parameters | |
|---|---|
| -Host | The name of the SMTP server which should be used for outgoing email. |
| -From | The address of the sender of the message. The sender must have permission to send messages through the specified SMTP server. |
| -Subject | The subject of the email message. |
| Optional Parameters | |
| -To | The address of the recipient of the message. Multiple recipients can be specified by separating the addresses with a comma. Either |
| -Body | The body of the email message. Either a |
| -CC | The address of the carbon copied recipient of the message. Multiple recipients can be specified by separating the addresses with a comma. Either |
| -BCC | The address of the blind carbon copied recipient of the message. Multiple recipients can be specified by separating the addresses with a comma. Either |
| -ExtraMIMEHeaders | An array of pairs which define additional MIME headers that should be included in an outgoing email message. |
| -Attachments | Allows a file to be attached to an email message. Accepts either a file path, a pair including a synthetic file name and the raw data of the file, or an array of file names and pairs. |
| -Username | Optional SMTP AUTH username. If specified a |
| -Password | Optional SMTP AUTH password. If specified a |
| -Priority | A value of High will cause the email to be inserted into the start of the email queue. A value of Low will cause the email to be inserted into the end of the email queue. |
| -ReplyTo | Adds a reply |
| -HTML | The HTML body of an email message. Either a |
| -ContentType | Alters the content type of the email message. Normally, the content type is handled automatically so this parameter should only be used if necessary. |
| -CharacterSet | Alters the character set of the sent email. Normally the character set is handled automatically so this parameter should only be used if necessary. |
| -TransferEncoding | Alters the transfer encoding of the email message. Normally the transfer encoding is handled automatically so this parameter should only be used if necessary. |
| -ContentDisposition | Alters the content disposition of the email message. Normally the content disposition is handled automatically so this parameter should only be used if necessary. |
| -Sender | Adds a sender header to the outgoing email. |
| -SimpleForm | Sends the current action parameters as the body of the email message. The formated parameters are sent in place of the body. This parameter can be used to quickly send emails to site administrators. |
| -HeaderType | Sets the header type to quoted |
| -HTMLImages | Allows an HTML image to be embedded in the HTML part of an email message. Accepts either a file path, a pair including a synthetic file name and the raw data of the image, or an array of file names and pairs. |
| -Immediate | If specified then the message is sent immediately without being added to the email queue. |
| -Date | Optional |
LP 7.0.2 adds the
To send an email from a format file:
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:
To send an email with the contents of a format file:
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: