RE: [PHP] send email sample
| From: | david joffrin | Date: | Sat, 19 Mar 2005 08:03:21 +0000 |
| Subject: | RE: [PHP] send email sample | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211091@lists.php.net to get a copy of this message | ||
Very simple sample:
// Send a mail to info@bidnplay.com
$headers = "From: \"Webmaster\"<webmaster@bidnplay.com>";
$mailtext = trim($_POST["email"]);
$mailtext .= " is joining the family.\n";
mail('info@bidnplay.com', 'New Registration', $mailtext, $headers);
I am using the "fake sendmail" windows tool.... very simple to configure, maybe a bit slow though.
David Joffrin
www.bidnplay.com
From: "issin" <issin@koide.3322.org> To: <php-general@lists.php.net> Subject: [PHP] send email sample Date: Sat, 19 Mar 2005 15:25:12 +0800 Dear all,Can you give me a send email sample?Thanks!Best Regards, Issin Yeung ________ Information from NOD32 ________ This message was checked by NOD32 Antivirus System for Linux Mail Server. http://www.nod32.com