jimmyshoes
Programmer
I am experimenting with cfmail.
I want to send an email in plain text format, however if I change the cfmail type attribute to "text" my email is still sent in HTML format
What am I doing wrong
I have also noticed that If i do not wrap my text in cfoutput tags within cfsavecontent then my emails are empty. Why is this?
I want to send an email in plain text format, however if I change the cfmail type attribute to "text" my email is still sent in HTML format
What am I doing wrong
Code:
<cfsavecontent variable="varContentTextEv">
<cfoutput>
Some Text
</cfoutput>
</cfsavecontent>
<cfsavecontent variable="varContentHTMLEv">
<cfoutput>
Some HTML
</cfoutput>
</cfsavecontent>
<!--- Send the email --->
<cfmail to="recip@mail.com"
from="sender@mail.com"
subject="Your Email"
timeout="300"
type="text">
<cfmailpart type="text" wraptext="74">
#varContentTextEv#
</cfmailpart>
<cfmailpart type="html" wraptext="74">
#varContentHTMLEv#
</cfmailpart>
</cfmail>
I have also noticed that If i do not wrap my text in cfoutput tags within cfsavecontent then my emails are empty. Why is this?