<we:sendMail>
Since version: - | Requires endtag: no
Description
This tag is used to send a webEdition document as an email. If the document to be sent contains shop or customer data, the template for that page must contain a <we:makeMail> tag.
Attributes
id
Default value: - | since version: - | required: no
Set this attribute to the ID of the webEdition document to be sent by mail. This can be perfomed dynamically by passing the page the variable ID via "post" or "get". If this attribute is unset, that variable will then be used.
subject
Default value: - | since version: - | required: no
Set this attribute to the text to be used as the "subject" of the email.
recipient
Default value: - | since version: - | required: yes
Set this attribute to a comma seperated list of the recipients´ email addresses. The value of this attribute can also be set dynamically. If you set a value without an "@", webEdition assumes that it is either a session field (a field from the customer module) or a variable. For example, if the session field "email" exists and the value of the attribute has been set to "email", the email will be sent to the email address defined by the session field "email". If the session field "email" does not exist and the variable "email" gets delivered to the page (which uses <we:sendMail/>; either by "post" or "get"), the email will be sent to the email address defined in the variable. A mixture of email addresses, session field names and variables is possible, for example: recipient="info@domain.de,sessionfield,variablename".
from
Default value: - | since version: - | required: yes
Set this attribute to the email address to be used as the sender address.
reply
Default value: - | since version: - | required: no
Set this attribute to the reply email address.
mimetype
Default value: - | since version: - | required: no
Set this attribute either to "text/html" to send an HTML mail, or to "text/plain" to send a plain text mail. If set to "text/plain" or left unset, the template of the webEdition document must not contain HTML tags, with the exception of <br>. The <br> tag results in a word wrap.
Allowed values:
- text/plain
- text/html
charset
Default value: - | since version: 3.1.0.0 | required: no
Set this attribute to the encoding standard for the notification email. Default encoding is "iso-8859-1". This tag will only work if the attribute "mail" is set.
Syntax
<we:sendMail [id="attribute"] [subject="attribute"] recipient="attribute" from="attribute" [reply="attribute"] [mimetype="text/plain|text/html"] [charset="attribute"] />