Jump to content

multiple recipients + dbuser mail recall


adriano88

Recommended Posts

Hello,

 

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>\r\n" .

    "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('[email protected],$usr_email ', "Login Details", $message,

    "From: \"Member Registration\" <auto-reply@$host>\r\n" .

    "X-Mailer: PHP/" . phpversion());

 

I am new to php, so any help is appreciated!

 

thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/183136-multiple-recipients-dbuser-mail-recall/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.