|
Let's send an email with PHP. To do so you will use the mail function. The mail function works with the following parameters:
mail(TO, SUBJECT, MESSAGE).
Let's breakdown each parameter. TO is the target email address. SUBJECT is what will appear in the subject line of the email. MESSAGE is the text of the email. Here's an example:
//variables for each parameter
$to = "mrchagoyan@hotmail.com";
$subject = "Feedback from your Website";
$message="Chagoyan, I think you should gives us all good grades in this class.";
//send the email
mail($to, $subject, $message);
Here's an example:sendmail.php ** USE YOUR OWN EMAIL! ** Mine is already cluttered. =)
|