CodeIgniter Forums
Send text and HTML email - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Send text and HTML email (/showthread.php?tid=2623)



Send text and HTML email - El Forum - 08-15-2007

[eluser]lefrog[/eluser]
Hi there

I am using the email class to send a html email which is working great. The only problem I’m having is with spam filters. As soon as I use an image tag in my html they shelve the email into a spam filter. I’ve tried css background and they get through but the images don’t display in most email clients.

In the email class you can send either a text or html email !!!

Is it possible to send a mixed email of text and html?


Send text and HTML email - El Forum - 08-15-2007

[eluser]Derek Allard[/eluser]
I think what you want is $this->email->set_alt_message()

The problem here though is that you can't specify "text for spam filters, and html for people", so if you want people to get HTML, you need to send it in html. That bumps things considerably on the spam-scale of most filters.

There really isn't a good way around this... spammers have ruined email as a reliable form of communication. My advice would be to send text only if at all possible.


Send text and HTML email - El Forum - 08-15-2007

[eluser]lefrog[/eluser]
Thanks Derek

I'll have a look at that but after giving myself a headache reading many articles on spammers using img tags, I'm considering your advice on sending plain text.

Thanks for getting back to me,
jonny