ContentType
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
- Frederik Holljen Updated
- Saad Tazi Commenter
- eddie Commenter
- Lara Commenter
- hli Commenter
Comments (4 historical)
Written by readers of the earlier documentation sites, kept as they were.
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?
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]
Re: send html email
Lara ·
This is in site.ini under [MailSettings]. You'd add it to settings/Yoursiteaccess/site.ini.append.php.
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.