Skip to the content
Documentation

ContentType

No ratings yet

Summary

Sets the content type for email sent from Exponential.

Usage

ContentType=text/plain|text/html

Description

The default setting is text/plain which means that mails sent are written in plain text. You can change this setting into text/html if you want to send HTML formatted mail. If you do this, you must also reformat all the mail templates with HTML tags.

Contributors

Comments (4 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. html and text in one email?

    Saad Tazi ·

    Is there a way to send the html version and the text version in the same email?

  2. send html email

    eddie ·

    Hi,
    May i know where to set the text below when i want to send an HTML email ?
    ContentType=text/plain|text/html
    need to add to which files? which directory?
    Thanks.
    Eddie Lee
    [email protected]

    1. Re: send html email

      Lara ·

      This is in site.ini under [MailSettings]. You'd add it to settings/Yoursiteaccess/site.ini.append.php.

  3. Changing contenttype in template

    hli ·

    with v.4.2 it is possible to set the mail contenttype in the template
    (e.g. in templates/content/collectedinfomail):
    {set-block scope=root variable=content_type}text/html{/set-block}
    The ini setting will be overridden for this template then.

Comments

Add a comment

Comments are read by a moderator before they appear.