I need a php form to mail script.Please post it here.
I need PHP script
Just use the search feature of the forum. There already 2 or 3 such a topics... It's not difficult, just takes some time...
and if you are too lazy to search thru the forum try this tutorial:
http://www.phpeasystep.com/workshopview.php?id=8
It's very nice and easy to use.
http://www.phpeasystep.com/workshopview.php?id=8
It's very nice and easy to use.
....and if you are more lazy then try to visit http://www.hotscripts.com. They are my personally php script dealer.
Cheers!
Cheers!
This question has been answered by me several times.
Just search for 'mail form' (author = 'dandelion').
Just search for 'mail form' (author = 'dandelion').
You can use the PHP mail() function...
| Code: |
|
// mail headers // ---------------- $headers = "From: ".$from_name." <".$from_email.">\n" ."Replay-To: ".$reply_email."\n" ."Cc: ".$cc_email."\n" ."X-Mailer: type anything you want here eg My Mailer\n" ."Content-Type: text/plain; charset=iso-8859-1"; // send mail // ----------------- mail ($mail_to, $mail_subject, $mail_body, $headers); |
variables should contain:
$from_name = your or your company name
$from_name = your or your company mail
$reply_mail = can be the same as above
$cc_mail = remove line containing this if you don't wat to send carbon copy
$mail_to = email to send mail to
$mail_subject = mail subject:-)
$mail_body = mail body :-) :-)
remember to use proper charset (iso-8859-1 is west european standard set)
enjoy
Related topics
