Forum Moderators: coopster
I am creating a simple email script but i have run into a problem.
When i submit the email and then check my account to see if its appeared. After I click on it the "from" that should normaly display, say my email or some text, displays a sentence informing me that my host has sent it on my behalf, showing my email next to it.
i have attached a link to an image, this should describe my problem alot better
here is my php script
---------------------
//send email aswell
$to = "me[at]example.com";
$subject = "Your Free sample order";
$content = "sample:\n
Thank you for your interest in our productTEST. Your sample will be despatched shortly";
$header = "From: me[at]example.com\n";
$header .= "Reply-To: me2[at]example.co.uk\n";
//spacer
mail($to, $subject, $content, $header);
}
---------------------
kind regards
Dazzclub
[edited by: jatar_k at 12:50 pm (utc) on April 9, 2008]
[edit reason] no urls thanks [/edit]
actually the title of the thread explained it perfectly
my first thought is to have Return-Path, Reply-To and From all present and set to the same email address
the other thing you could do is look at settings in php.ini but most hosts don't change this on shared hosting
reference
[php.net...]