Kal
03-16-2006, 04:50 PM
Hi,
I have script using the mail() function, it works, however when you recieve the email the "from" header has the servers details on, is there any way i can change this so it has my email address instead?
$to = "$customers_email_address";
$subject = "xxx - Login Details Verification";
$headers = "From: xxx <xxx@xxxx.co.uk>";
$body = "xxx\n
Your username is - - - $customers_email_address\n
Your password is - - - $customers_password\n
if (mail($to, $subject, $headers, $body))
{
echo("<p>Message successfully sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
thanks in advance
I have script using the mail() function, it works, however when you recieve the email the "from" header has the servers details on, is there any way i can change this so it has my email address instead?
$to = "$customers_email_address";
$subject = "xxx - Login Details Verification";
$headers = "From: xxx <xxx@xxxx.co.uk>";
$body = "xxx\n
Your username is - - - $customers_email_address\n
Your password is - - - $customers_password\n
if (mail($to, $subject, $headers, $body))
{
echo("<p>Message successfully sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
thanks in advance