<Email>

The Email tag does not render visibly at run-time. It is a behind-the-scenes operator. Upon successful submission of the form, XMod Pro will send an email based on the information provided in this tag. You may include more than one Email tag in each form. The Email tag can be used to send multiple emails but it is not intended as a bulk email mechanism.

Syntax

<Email
    To="comma-delimited list of email addresses"
    From="email address"
    CC="string"
    BCC="string"
    ReplyTo="string"
    Subject="string"
    Format="Text|Html"
    Attachment="mapped path and filename of attachment"

   SendIf="expression">
    ...Text/HTML and [[FieldTokens]] to make up Body of the Email...
</Email>
 

Remarks

Back to top

Example

<addform>
  <submitcommand commandtext="INSERT INTO Users(FirstName, LastName) VALUES(@FirstName, @LastName)" />
  <table>
    <tr>
      <td>
         <label for="txtFirstName" text="First Name" />
         <textbox id="txtFirstName" datafield="FirstName" datatype="string" />
       </td>
    </tr>
    <tr>
      <td>
        <label for="txtLastName" text="Last Name" />
        <
textbox id="txtLastName" datafield="LastName" datatype="string" />
      </td>
    </tr>
    <tr>
      <td colspan="2">
        <addbutton text="Add"/> <cancelbutton text="Cancel"/>
      </td>
    </tr>
  </table>
  <email To="you@yoursite.com" From="me@mysite.com,them@theirsite.com"
      subject="A New Record Has Been Added ([[FirstName]] [[LastName]])" format="html">
    The following record was added to the database:<br />
    <strong>First Name:</strong> [[FirstName]]<br />
    <strong>Last Name:</strong> [[LastName]]
  </email>
</addform>
Back to top