Looktrne Posted February 1, 2008 Share Posted February 1, 2008 I have a fellow website owner running the same script as me... the script sends html emails when he recently switched servers the email html is coming through in code to the recipients email it actually shows the code instead of showing the result of the html... what would be different on the new server that would cause this?? I told him to ask the host about the outgoing email handler.. and they say its in the script well the script hasnt changed and now it does not work on the new server.. does anyone know about a setting on the server or configuration that would cause the emails to show the html code instead of displaying the result of the html code??? any help on this is greatly appreciated <html> <head> <title>Emarital.com</title> <link rel=3D"stylesheet" = href=3D"http://emarital.com/style.css" = type=3D"text/css"> </head> <body> <table width=3D"100%" cellpadding=3D"3"> <tr><td> <img src=3D"http://emarital.com/images/en/logo.gif"> </td></tr> <tr><td> User: sandman4971 has created/modified his/her profile. You can view it in your <a = href=3D"http://emarital.com//smartway/index.php"></a>.= </td></tr> </table> </body> </html>_____________________ this would display the result of the code if sent from my site or his old server Paul Quote Link to comment https://forums.phpfreaks.com/topic/88817-php-sending-html-code-in-emails/ Share on other sites More sharing options...
sKunKbad Posted February 1, 2008 Share Posted February 1, 2008 The actual HTML isn't going to effect the output. I think what the host was talking about is the script that is sending the email. Sending email from your shared hosting account can be easy, and sometimes not so easy. I recently had an issue where the host reinstalled PEAR and I lost my packages, and my email stopped working. I finally figured out that I wasn't receiving emails, and got back to them, but lost about a week's worth of email due to the situation. You need to look in to the actual php script that is sending the email, and post that actual code here. Quote Link to comment https://forums.phpfreaks.com/topic/88817-php-sending-html-code-in-emails/#findComment-454902 Share on other sites More sharing options...
sKunKbad Posted February 1, 2008 Share Posted February 1, 2008 You might want to take a look at phpmailer or tectite. I have used these successfully for regular sendmail, PEAR, and SMTP. Quote Link to comment https://forums.phpfreaks.com/topic/88817-php-sending-html-code-in-emails/#findComment-454905 Share on other sites More sharing options...
haku Posted February 1, 2008 Share Posted February 1, 2008 With phpmailer, you can set the header of the mail to html mail. Quote Link to comment https://forums.phpfreaks.com/topic/88817-php-sending-html-code-in-emails/#findComment-454909 Share on other sites More sharing options...
Looktrne Posted February 1, 2008 Author Share Posted February 1, 2008 Guys thanks for all the input... but the code works it works on many servers so I need to find out whats wrong with the mailer scrypt... and why cant the host figure this out.. he has a dedicated server with support from the host... the script sends html fine on many other servers.... how can I check the mailer scrypt settings on his server? I have access to cpanel and ftp.... they pretty much blew him off saying it is in a scrypt.. how could we reword a request to check mailer scrypt settings ? Paul Quote Link to comment https://forums.phpfreaks.com/topic/88817-php-sending-html-code-in-emails/#findComment-454967 Share on other sites More sharing options...
awpti Posted February 1, 2008 Share Posted February 1, 2008 Script. Not scrypt. Dump the headers of the EMail. If the content-type isn't text/html then it's going to display as source. Quote Link to comment https://forums.phpfreaks.com/topic/88817-php-sending-html-code-in-emails/#findComment-454970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.