
Originally Posted by
zamzam
I would like someone to help me with scripts in php that will send e-mails to the following;
1 To the receiver
2 To the Sender
It should also send the URL where the receiver will click to see the interface to login.
This when the user fill in some form.
The scripts below is not working
<?php
mail("$sender",, "My Subject", "Line 1\nLine 2\nLine 3");
mail("$Receiver",, "My Subject", "Line 1\nLine 2\nLine 3");
?>
This is the correct syntax for sending a mail:
PHP Code:
mail("recipient@example.com", "Subject Text", "Body Text", "From: sender@example.com");
Specifically for you:
PHP Code:
mail($receiver, "My Subject", "Line 1\nLine 2\nLine3", "From: $sender\nBCC: $receiver");
Bookmarks