note 63130 added to ref.mail
| From: | php-general at lists dot php dot net | Date: | Tue, 14 Mar 2006 07:34:51 +0000 |
| Subject: | note 63130 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105769@lists.php.net to get a copy of this message | ||
Very simple function for sending HTML emails from your server
to use it call
<?
$from = "me@me.com";
$to = "you@you.com";
$subject = "Hello";
$body = "How do you do <br><br>";
email($to, $subject, $body, $from);
?>
And put this in your functions page
<?
function email($to, $subject, $body, $from){
$headers = "From: " . $from . "\n";
$headers .= "Content-type: text/html;charset=ISO-8859-9\n";
mail($to, $subject, $body, $headers)
}
?>
http://www.vainternet.co.uk
----
Server IP: 85.116.0.130
Probable Submitter: 86.132.170.160
----
X-Spam-Status: No, hits=4.2 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_40_50,HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- http://master.php.net/note/edit/63130
Del: integrated -- http://master.php.net/note/delete/63130/integrated
Del: useless -- http://master.php.net/note/delete/63130/useless
Del: bad code -- http://master.php.net/note/delete/63130/bad+code
Del: spam -- http://master.php.net/note/delete/63130/spam
Del: non-english -- http://master.php.net/note/delete/63130/non-english
Del: in docs -- http://master.php.net/note/delete/63130/in+docs
Del: other reasons-- http://master.php.net/note/delete/63130
Reject -- http://master.php.net/note/reject/63130
Search -- http://master.php.net/manage/user-notes.php