Jump to content

php mail function with windows mail server


jkkenzie

Recommended Posts

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 ??

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";

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.