sending email with PHP (preventing from being placed in spam folder)

Posted by Rees on Stack Overflow See other posts from Stack Overflow or by Rees
Published on 2010-04-04T01:39:43Z Indexed on 2010/04/04 1:43 UTC
Read the original article Hit count: 397

Filed under:
|
|

hello, i am trying to send email using PHP scripts... however, the recipient is receiving it in his/her SPAM folder -this is not the desired result (I would like to have it sent directly to their inbox so that I don't have to warn them to look in their SPAM folder).

below is the code I use to send the email using PEAR... what changes can I make to prevent the emails from going into the SPAM folder?

$mail = Mail::factory("mail");
$headers["From"] = "[email protected]";
$headers["To"] = "[email protected]";
$headers["Subject"] = "Activation";
$body = "This is a test!";
$mail->send("[email protected]", $headers, $body);

?>

© Stack Overflow or respective owner

Related posts about php

Related posts about pear