mathan5481
-
Posts
3 -
Joined
-
Last visited
Posts posted by mathan5481
-
-
i checked in few sites and added few lines, but it dont seems to work..<?php$to = 'mathan5481@hotmail.com';$Cc = '($_POST['email']) ';$subject = 'Order Form';$msg = "<html><body><b>Name : " . strip_tags($_POST['name']) . " </b><br><br><b>Tel No. : " . strip_tags($_POST['phone']) . " </b><br><br><b>E-Mail : " . strip_tags($_POST['email']) . " </b><br><br><b>Address : " . strip_tags($_POST['add']) . " </b><br><br><b>Messages : " . strip_tags($_POST['messages']) . " </b><br><br></body></html>";// Make sure to escape quotes$headers = 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";$headers .= 'From <me@mysite.com>' . "\r\n";mail($to, $Cc, $subject, $msg, $headers);?>
-
i need to send a copy of the form to the sender as well as to myself..i can receive email to my own email but not a copy to the sender... how do i go about it?
plz help
this is the code
<?php$to = 'mathan5481@hotmail.com';$subject = 'Order Form';$msg = "<html><body><b>Name : " . strip_tags($_POST['name']) . " </b><br><br><b>Tel No. : " . strip_tags($_POST['phone']) . " </b><br><br><b>E-Mail : " . strip_tags($_POST['email']) . " </b><br><br><b>Address : " . strip_tags($_POST['add']) . " </b><br><br><b>Messages : " . strip_tags($_POST['messages']) . " </b><br><br></body></html>";// Make sure to escape quotes$headers = 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";$headers .= 'From <me@mysite.com>' . "\r\n";mail($to, $subject, $msg, $headers);?>
sending a copy of mail to sender
in PHP Coding Help
Posted
sorry i dont understand.. can elaborate plz?