Adsense
Popular Posts
- jQuery autocomplete scroll bar for dropdown menu
- JavaScript Arrays and Associate Arrays
- mod_auth_cas.so error: undefined symbol: SSL_connect
- Design date and signature box in Latex
- Install APXS in Redhat Linux
- JavaScript, remove trailing insignificant zeros after toFixed function
- jQuery, toggle the display
- Difference between state and props in React
- Set Windows path command line
- super(props) in React
Thursday, June 12, 2014
Test PHP mail function
testmail.php to test PHP mail function:
<?php
ini_set('error_reporting', E_ALL);
?>
<html>
<head>
<title>PHP: Test mail function</title>
</head>
<body>
<?php
$email = "jiansen@example.com";
$subject = "Happy Birthday!";
$msg = "Wishing you all the best in life.";
echo $subject;
$headers = "From: jiansen@example.com";
$headers .= "Reply-To: jiansen@example.com";
if(mail($email,$subject,$msg, $headers)){
echo "E-Mail Sent";
} else {
echo "There was a problem";
}
?>
</body>
</html>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment