note 73594 deleted from ref.mail by dmytton
| From: | dmytton@php.net | Date: | Fri, 02 Mar 2007 19:11:31 +0000 |
| Subject: | note 73594 deleted from ref.mail by dmytton | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124022@lists.php.net to get a copy of this message | ||
Note Submitter: scampifries at beer dot com
Reason: useless
----
I might be being blind but as far as I can see there is nothing here that simply explains how to
send an email. So for the beginner, here it is:
On a properly configured server (e.g. your webhost's server) all you should need to do is this:
<?php
$subject = "Write your subject here";
$message = "Write the main text of your email here";
$to = "example@example.com";
mail($to , $subject , $message);
?>