0

I want to make it so my email script will go to the inbox instead of the spam box. How can I fix this? Here is my code

$q_ry = array();
$q_ry = "SELECT `my_email` FROM `members`";
$adresses = array();
$adresses = mysql_query($q_ry);

while ($u = mysql_fetch_array($adresses)) 
{
    if (!mail($u['my_email'],"Reunited City Newsletter",$_POST['email'],"From: no-reply@reunited-city.com")) 
    {
        echo "Email not sent to" . $u['my_email'] . "!<br/>";
    }
}

echo "<font color = 'green'><b>Mass email sent successfully!</b></font>";

I can post the complete code if needed.. Thank you

Marc
  • 6,051
  • 5
  • 26
  • 56
braidz
  • 45
  • 9

0 Answers0