I am having a little trouble getting my script to work correctly. PHP send
the mail out fine, but when i see the mail in my inbox, it have no from
address. I have tryed to figure out why this is not working, but i have gad
no sucess. I have enclosed the code below, any help is greatly appreciated!
---------------------------
function new_user_mail ($username, $password, $email, $name, $homepage)
{
$subject = "Welcome to the $site_name community!";
$body = "Thank you for registering to become a memeber of the $sitename
community!
You have registered with the following information:
Username : $username
Password : $password
Name : $name
E-Mail : $email
Homepage : $homepage
You are now able to login to our community at this time. If you have any
questions you may contact our administrator.
If you did not sign up for this account simply reply to this E-Mail with the
word 'REMOVE' in the body.
Have Fun!";
mail($email,
$subject,
$body,
"From: $site_name\r\nReply-to: $admin_mail\r\n");
}
----------------------------------------
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]