I am building a php login script.
When the user registers the script will send him a confimation email using this code
mail($usr_email, "Login Details", $message,
"From: "Member Registration" <auto-reply@$host>rn" .
"X-Mailer: PHP/" . phpversion());
everything works fine.
Now I want the mail to be sent to him as well as me!
so I modified the code but it doesn't work anymore:
mail('myemail@me.com,$usr_email ', "Login Details", $message,
"From: "Member Registration" <auto-reply@$host>rn" .
"X-Mailer: PHP/" . phpversion());
I am new to php, so any help is appreciated!
thanks in advance!