[wd_asp elements=’search’ ratio=’100%’ id=1]

Send email and collect fields with html encoding

31st July 2013

Php - Email

php codehaven

firstname: ".$element1."

surname: ".$element2.";

/* * * * * * * * * * * * * * SEND EMAIL FUNCTIONS * * * * * * * * * * * * * */
$to = "[email protected]";
$subject = "Form 1";
$from = "[email protected]";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

mail($to,$subject,$body,$headers);
echo "Mail Sent.";

?>