setting Headers using htmlMimeMail class?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi guys.

I'm having a problem with mails I'm sending out using htmlMimeMail class. Some of the mail accounts mark the mails as trash/bulk/spam and on some accounts the mail doesnt come through at all. Im assuming it has something to do with the headers of the email.

In the htmlMimeMail class the setHeader function takes two arguments. Im not sure what the arguments are and I've also had little luck finding help or documentation about that function.

headers would be something like this:

  $headers="";
   $headers .= "X-Sender:  $mail <$mail>\n"; //
   $headers .="From: $mail_f <$mail_f>\n";
   $headers .= "Reply-To: $mail_f <$mail_f>\n";
   $headers .= "Date: ".date("r")."\n";
$headers .= "Message-ID: <".date("YmdHis")."you@".$_SERVER['SERVER_NAME'].">\n";
   $headers .= "Subject: $subject\n";
   $headers .= "Return-Path: $mail_f <$mail_f>\n";
   $headers .= "Delivered-to: $mail_f <$mail_f>\n";
   $headers .= "MIME-Version: 1.0\n";
   $headers .= "Content-type: text/html;charset=ISO-8859-9\n";
   $headers .= "X-Priority: 1\n";
   $headers .= "Importance: High\n";
   $headers .= "X-MSMail-Priority: High\n";
   $headers .= "X-Mailer: A PHP mailer!\n";

but how do I incorporate that into the setHeader function?

thanks in advance

--

Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
[f] +27 86 681 5885

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux