Forum Moderators: phranque

Message Too Old, No Replies

Problems with html emails after hosting switch

         

test1

3:29 pm on Mar 3, 2008 (gmt 0)

10+ Year Member



I have several places on my sites that will send out emails with some minor html formatting. This has always worked fine for me in the past. I recently switched hosting companies and now some of my users are complaining that their emails are showing up as unrendered html code in their mail client. This only seems to happen with some of them, but for the ones that are having this issue it started after switching hosting companies.

The hosting company is looking into the issue but they haven't come up with anything yet. Are there any settings in apache or php that need to be enabled in order to properly send out html emails? Since the code hasn't changed I have to assume that it's a server issue.

jdMorgan

9:36 pm on Mar 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is likely related to the script which generates and sends e-mails on your new server; A properly-secured e-mail script will not allow the sending of any HTML tags that might invoke malicious scripts, for example. So it may be that the 'security filter' of your new e-mail script is simply removing any and all HTML tags -- You'll have to test this by examining the raw 'broken' e-mail messages themselves.

This may be configurable, or it may be hard-coded, depending on what sendmail script your new host provides.

Since Apache itself does not handle e-mail, you may get more/better answers in our Website Technology [webmasterworld.com] forum.

Jim

gergoe

12:50 am on Mar 4, 2008 (gmt 0)

10+ Year Member



You may want to check the PHP forum [webmasterworld.com] as well, as it might be related to the way the content of the emails are generated (if you are using PEAR modules for example - which is strongly suggested by the way). If you post your problem there, don't forget to include the relevant part of your script as well.

test1

4:53 pm on Mar 7, 2008 (gmt 0)

10+ Year Member



thanks guys I'll do that.