Forum Moderators: coopster
The problem is I need this script to send the mail where from address should be the actual user’s address (i.e. if email@example.com register a new account I need this system to send the following mail that should look like coming from email@example.com
$FromName = $Email;
$ToEmail = $listmail;
$Message = "
Please subscribe meUser Name : " . $UserName . "
Mailing : " . $Mailing . "
Name : " . $CustomerName . "
Email : " . $Email . "Thank you
Can some body help me on this fixing?
[edited by: eelixduppy at 2:17 pm (utc) on Sep. 8, 2007]
[edit reason] removed email [/edit]
$Subject = "Subscribe to List";
$FromEmail = "From: " . $FromName . "<" . $FromEmail . ">\r\n";
if (mail($ToEmail, $Subject, $Message, $FromEmail) == true)
{
$strMessage = "A CONFIRMATION MAIL HAS BEEN SENT TO YOUR MAILBOX WITH LOGIN INFORMATION. PLEASE LOGIN TO CONTINUE SHOPPING";
}
else
{
$strMessage = "CONFIRMATION MAIL SENTING FAILED TO YOUR MAILBOX";
}
echo "";