PEAR mail sorted as spam

From: Date: Wed, 03 Jan 2007 10:14:27 +0000
Subject: PEAR mail sorted as spam
Groups: php.general 
Request: Send a blank email to php-general+get-246431@lists.php.net to get a copy of this message
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

« previous php.general (#246431) next »