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

Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.