View Single Post
Old 27th February 2007, 00:07
edge edge is offline
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts

If you add a "from" email address in the PHP mail() , it will use that instead of the
You will need to add it in the "headers"

$to = "";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "";
$headers = "From: $from";
echo "Mail Sent.";
Never execute code written on a Friday or a Monday.

Last edited by edge; 27th February 2007 at 00:09.
Reply With Quote