Re: setting Headers using htmlMimeMail class?

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

 



Ok I take it, it will be something like this:

 $mail = new htmlMimeMail();
$mail->setHeader("Return-Path", $proxy_from);
$mail->setHeader("Reply-To", $proxy_from);

??

i'll give it a try and let u know if I came right!


Angelo Zanetti wrote:
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


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