Hello all,
I have a problem with my mail script. The problem is as follow:
My work adress is POP3 and forwarded to my private gmail adress. Now when I send an email through my PHP script, I receive the email only on my gmail adress, and not on my POP3 account. Which is weird, because with all other emails I receive them on both.
the script is as follow:
function SentMail ($from, $frommail, $to, $subject, $mail) {
$headers = "From: ". $from . " <".$frommail.">\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
$headers .= 'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $mail, $headers);
}
Can someone tell me what I've done wrong.