jkkenzie Posted March 8, 2010 Share Posted March 8, 2010 There is a host that registered a domain name on a windows server, later setup a linux machine and i think point to domain on windows server Or when we send html email it goes through windows mail sever or something. My problem here is, the html email appears as text plus the code shows up, the same scripts on another server does not have a problem. Could there be an issue with mail server compatibilty btween windows and linux? Or Apache and IIS ?? Quote Link to comment Share on other sites More sharing options...
trq Posted March 8, 2010 Share Posted March 8, 2010 More than likely a problem with the code. Quote Link to comment Share on other sites More sharing options...
Deoctor Posted March 8, 2010 Share Posted March 8, 2010 i have tried out the same and could not identify the problem though i add all the required headers.. check this code might be it is working in the server which u are using. $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; Quote Link to comment Share on other sites More sharing options...
jkkenzie Posted March 8, 2010 Author Share Posted March 8, 2010 Its working on our server and many other servers but its only with this new server that was setting up emmediately for us. require_once(MOD_ROOT_DIR.'3rdparty/htmlMimeMail/htmlMimeMail.php'); require_once(MOD_ROOT_DIR.'3rdparty/htmlMimeMail/RFC822.php'); require_once(MOD_ROOT_DIR.'3rdparty/htmlMimeMail/smtp.php'); | |blahblah $headersPlain = "MIME-Versin: 1.0\r\n"; $headersPlain .= "Content-type: text/plain; charset=ISO-8859-1; format=flowed\r\n"; $headers = "MIME-Versin: 1.0\r\n"; $headers .= "Content-type: text/html; charset=ISO-8859-1; format=flowed\r\n"; e.t.c Quote Link to comment Share on other sites More sharing options...
Deoctor Posted March 8, 2010 Share Posted March 8, 2010 do u have mime installed in the php? Quote Link to comment Share on other sites More sharing options...
trq Posted March 8, 2010 Share Posted March 8, 2010 Its working on our server and many other servers but its only with this new server that was setting up emmediately for us. require_once(MOD_ROOT_DIR.'3rdparty/htmlMimeMail/htmlMimeMail.php'); require_once(MOD_ROOT_DIR.'3rdparty/htmlMimeMail/RFC822.php'); require_once(MOD_ROOT_DIR.'3rdparty/htmlMimeMail/smtp.php'); | |blahblah $headersPlain = "MIME-Versin: 1.0\r\n"; $headersPlain .= "Content-type: text/plain; charset=ISO-8859-1; format=flowed\r\n"; $headers = "MIME-Versin: 1.0\r\n"; $headers .= "Content-type: text/html; charset=ISO-8859-1; format=flowed\r\n"; e.t.c MIME-Versin should be MIME-Version for starters. Quote Link to comment Share on other sites More sharing options...
jkkenzie Posted March 8, 2010 Author Share Posted March 8, 2010 Ok thanks guys, i think that will solve the issue. Quote Link to comment 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.