Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage
Php > E-Mail sample source codes
Simple form mail
Simple form mail \r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Mailer: formmail version 1.10\r\n"; $header .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n"; $header .= "Content-Transfer-Encoding: 8bit\r\n"; $subject = "your webform posted at".date("d-m-Y"); //your mailsubject incl. current date foreach ($_REQUEST as $key => $val) { if ($key != "from_email" && $key != "from_name") { //skip, this values are already in the header $body .= $key . " : " . $val . "\r\n"; } } mail("you@yourmail.com", $subject, $body, $header); header("Location: ".$goto_after_mail); ?>
Privacy Policy
|
Link to Us
|
Links