Email on behalf of user
Posted: Fri Oct 12, 2007 12:29 am
Hi,
Can anybody tell me that how can I send email in PHP on behalf of any user...
Can anybody tell me that how can I send email in PHP on behalf of any user...
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$to = $email;
$subject = "new e-mail";
$message = "Hello I'm Your E-Mail";
$headers = "From: noreply@mywebsite.co.uk\r\n".'Cc: me@mywebsite.co.uk';
if( mail($to, $subject, $message, $headers) )
{
echo "Mail Sent!!!";
}
else
{
echo "Unable to send mail";
}