Reputation: 1377
I have a weird problem and its got me stumped. If I send an email like this (below) it sends fine. The content of the email is html and sending using the first method shows the html content as text as expected.
<cfmail to="[email protected]" from="[email protected]" subject="To Oxint">
I change nothing in the email except change the cfmail line to this (below)
<cfmail to="[email protected]" from="[email protected]" subject="To Oxint" type="html">
The email is not received. Not in my junk or spam folder. Just not received. CF mail logs show my email as successfully sent.
I've got our network team looking for issues as well, but its baffling. Any suggestions would be very much appreciated.
Upvotes: 0
Views: 631
Reputation: 7833
Some e-mail clients deny HTML mails without a plain part. Try this:
<cfmail from="[email protected]" to="[email protected]" subject="always deliver e-mails in plain as well">
<cfmailpart type="text/plain">Here is some text.</cfmailpart>
<cfmailpart type="text/html">Here is some <b>bold</b> text.</cfmailpart>
</cfmail>
Order matters here. First text/plain
, then text/html
.
Upvotes: 2