CC to sender
Hello Guys,
Can some one help me on how to add a cc to my script
<?
$to = 'wilson@magega.com';
$subject = 'Online Employees Time Cards';
$message =
I want to resend a copy of the form that my web user are submitting.
Please....
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Me <me@example.com>' . "\r\n";
$headers .= 'Cc: me@example.com ' . "\r\n";
Cc sender
Hello, I try the code you gave me and didn't work, can you please tell me why?
<?
$to = 'wilson@magega.com';
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: Me <me@example.com>' . "\r\n";
$headers .= 'Cc: me@example.com ' . "\r\n";
$subject = 'Online Employees Time Cards';
$message =
' Date:
' . $_REQUEST['date'] . "\n\n" .
' First Name:
' . $_REQUEST['name'] . "\n\n" .
' Subject:
' . $_REQUEST['subject'] ."\n\n" .
' Comments:
' . $_REQUEST['comments'] ;
$email = $_REQUEST['email'];
$headers = 'From: ' . $email . "\r\n" .
'Reply-To: ' . $email . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail ($to, $subject, $message, $headers);
header("Location:thankyou.php");
?>
Does the mail go out but not to the sender? Or does mail not go out at all?
Email is not going to sender but I dont know if I have to replace: this two lines with some thing 'From: Me <me@example.com>' . "\r\n";
$headers .= 'Cc: me@example.com ' . "\r\n";
where it said Cc: me@example.com do I keek like that...?
You could use $headers .= 'Cc: Me <me@example.com>' . "\r\n";
Of course you need to use an actual email address.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks