sending email with PHP (preventing from being placed in spam folder)
- by Rees
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);
?