To send an email in PHP is very simple. Just use the mail() function. Here is an example:
<?php
mail('to@whom.com', 'subject of the email', "the email's message!", "headers");
?>
<?php
// HEADERS:
$headers = "From: from@whom.com";
$headers = "Content-type: text/html";
// To
$to = "colby@virst.net";
// Subject
$subject = "A test";
$message = "<html><head> <title>An email</title> </head> <body>
<b>HELLO!</b> This is a <u>really</u> cool email! </body> </html>";
mail($to, $subject, $message, $headers);
?>
Comments
Post new comment