note 111395 deleted from function.mail by danbrown
| From: | danbrown@php.net | Date: | Mon, 04 Mar 2013 18:12:20 +0000 |
| Subject: | note 111395 deleted from function.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193891@lists.php.net to get a copy of this message | ||
Note Submitter: mintu singh
----
you can use this for sending mail but before using this you have to change php.ini file
<?php
$email = "mytest@mytest.com"; # email address of recipient
$subject = "This is a test email"; # subject of email
$body = "This is where the text goes...";
$mail_hrd = "From: webmaster@MyWebSite.com <webmaster@MyWebSite.com;";
mail($email,$subject,$body,$mail_hdr)
?>
<a href="http://www.searchingwhat.com">thanks</a>