<we:form type="formmail">
Since version: - | Requires endtag: yes
Description
This tag generates an HTML form whose content is sent to a specified email address.
You must NOT use the following names as form field names: remove, order, required, onsuccess, onerror, type, recipient, mimetype, subject, onmailerror, confirmmail, preconfirm, postconfirm, from.
The following strings are not allowed at the beginning of a line:
content-type: mime-version: Content-Transfer-Encoding: bcc: cc: to:
The following string is not allowed as mail content:
multipart/mixed
Attributes
type
Default value: - | since version: - | required: yes
Allowed values:
- formmail
recipient
Default value: - | since version: - | required: yes
Set this attribute to a comma seperated list of email addresses to which you wish to send the form content. These addresses have also to be added to the webEdition Formmail recipients list in OPtions > preferences > formmail recipients.
name
Default value: - | since version: - | required: no
method
Default value: - | since version: - | required: no
Set this attribute to the HTTP transfer method. Valid parameters are "GET" and "POST".
Allowed values:
- get
- post
target
Default value: - | since version: - | required: no
Set this attribute to the name of the window or frame in which the link should open.
Allowed values:
- _top
- _parent
- _self
- _blank
onsuccess
Default value: - | since version: - | required: no
Set this attribute to the ID of a document to be displayed after successfully sending the form.
onerror
Default value: - | since version: - | required: no
Set this attribute to the ID of a document to be displayed after unsuccessfully sending the form.
onmailerror
Default value: - | since version: - | required: no
Set this attribute to the ID of a document to be displayed after unsuccessfully sending the form because of faulty email address syntax.
onrecipienterror
Default value: - | since version: - | required: no
from
Default value: - | since version: - | required: no
Set this attribute to an email address that should appear as the from address in the mail.
subject
Default value: - | since version: - | required: no
Set this attribute to what should appear in the subject line of the email.
charset
Default value: - | since version: - | required: no
Set this attribute to the encoding standard for the email. Default encoding is "iso-8859-1".
order
Default value: - | since version: - | required: no
Set this attribute to a comma seperated list of the form field names. The fields will be added to the mail in the order which they are listed here.
required
Default value: - | since version: - | required: no
Set this attribute to a comma seperated list of mandatory form fields.
remove
Default value: - | since version: 3.0.0.0 | required: no
Set this attribute to a comma seperated list of fields, whose contents should not be sent with the email.
mimetype
Default value: text/plain | 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 can contain no HTML tags except the <br> tag. The tag <br> results in a word wrap.
Allowed values:
- text/plain
- text/html
confirmmail
Default value: - | since version: - | required: no
Set this attribute to "true" or "false" depending on whether or not a confirmation email is to be sent.
Allowed values:
- true
- false
forcefrom
Default value: - | since version: - | required: no
Allowed values:
- true
- false
preconfirm
Default value: - | since version: - | required: no
Set this attribute to the name of a we:tag whose content should appear in the email before the value of the fields are listed.
postconfirm
Default value: - | since version: - | required: no
Set this attribute to the value of the "name" attribute of a we:tag whose content should appear in the email after the value of the fields are listed.
Syntax
<we:form type="formmail" recipient="attribute" [name="attribute"] [method="get|post"] [target="_top|_parent|_self|_blank"] [onsuccess="attribute"] [onerror="attribute"] [onmailerror="attribute"] [onrecipienterror="attribute"] [from="attribute"] [subject="attribute"] [charset="attribute"] [order="attribute"] [required="attribute"] [remove="attribute"] [mimetype="text/plain|text/html"] [confirmmail="true|false"] [forcefrom="true|false"] [preconfirm="attribute"] [postconfirm="attribute"]> ... </we:form>