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 ?? Link to comment https://forums.phpfreaks.com/topic/194474-php-mail-function-with-windows-mail-server/ 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. Link to comment https://forums.phpfreaks.com/topic/194474-php-mail-function-with-windows-mail-server/#findComment-1022895 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"; Link to comment https://forums.phpfreaks.com/topic/194474-php-mail-function-with-windows-mail-server/#findComment-1022896 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 Link to comment https://forums.phpfreaks.com/topic/194474-php-mail-function-with-windows-mail-server/#findComment-1022900 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? Link to comment https://forums.phpfreaks.com/topic/194474-php-mail-function-with-windows-mail-server/#findComment-1022901 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. Link to comment https://forums.phpfreaks.com/topic/194474-php-mail-function-with-windows-mail-server/#findComment-1022904 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. Link to comment https://forums.phpfreaks.com/topic/194474-php-mail-function-with-windows-mail-server/#findComment-1022981 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.