PEAR mail sorted as spam

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

 



Hi,

When I send mail via PEARs Mail class they are sorted as spam by Thunderbird. Do you have any ideas why? I can't figure it out.

function send_mail($to,$from,$subject,$body)
{
   $recipients = $to;
$headers = array(); $headers['From'] = $from;
   $headers['To']      = $to;
   $headers['Subject'] = $subject;
$params["host"] = "my.smtp.com";
   $mail_object =& Mail::factory('smtp', $params);
$mail_object->send($recipients, $headers, $body);
}

--

Regards Emil

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