I send my e-mails with a function like this:
function sendEmail($from_email, $to, $subject, $content)
{
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $from_email";
$content = stripslashes($content);
mail($to, $subject, $content, $headers, "-f$from_email");
}
The problem is I send and receive e-mail from @domain.com. However if I send an e-mail using this script from password@domain.com, the webmail app thinks it is junkmail. The question is, has anyone overcome the problem of e-mails accidentally being put as spam.