Skip to content

Email template

The email_template is used inside the form tag. This page describes the parameters.

{!-- for inside the form tag --}
{exp:reinos_email_form:form}
    {email_template} ... {/email_template}
{/exp:reinos_email_form:form}

or

{exp:reinos_email_form:email_template} ... {/exp:reinos_email_form:email_template}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

mailtype

Set the mailtype for sending the email.
Options: html text

mailtype="text"

to

Set the recipient email

to="example@example.com"

from:email

Set the From email

from:email="from@example.com"

from:name

Set the From name

from:name="John Doe"

reply_to:email

Set the reply to email

reply_to:email="reply@example.com"

reply_to:name

Set the reply to name

reply_to:name="John Doe"

cc

cc receipients, Multiple values seperated by a pipline (|)

cc="test@example.com|test2@example.com"

bcc

bcc receipients, Multiple values seperated by a pipline (|)

bcc="test@example.com|test2@example.com"

subject

Subject for the email

subject="New email"

attachments

Include attachments by field name (pipline seperated for multiple files)

Attachement are only attached to the email and not saved on your server.

attachments="myfile|myfile_2"

name

To identify the template in the hooks

name="email_template_1"

respect_br

Respect line breaks in HTML mode mailtype="html"

respect_br="no"

direct

When using the tag as a standalone tag, you can set it to direct="yes" so it will send the mail once and display the content on the screen. Great for showing an invoice and send it also directly per mail (once).

With once, we mean just one email. So after a refresh the tag won't send the mail again.

{exp:reinos_email_form:email_template direct="no"} ... {/exp:reinos_email_form:email_template}

send_email

Control if we send actual an email. In some situations you would need the submission saved in the submission table but don't want to send the mail.

Default to yes

send_email="yes"