note 16392 added to function.mail
| From: | mzajac at kki dot net dot pl | Date: | Sat, 27 Oct 2001 20:23:37 +0000 |
| Subject: | note 16392 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19509@lists.php.net to get a copy of this message | ||
I'm not sure if anyone mentioned this above, but here's the way of using a template engine
with mail(). You can make a template including the mail header fields (From:, Subject:, whatever), a
blank line and the mail text, and easily send it by
mail($recipient_addr, '', '', $template_output);
mz
--
http://www.php.net/manual/en/function.mail.php
http://master.php.net/manage/user-notes.php?action=edit+16392
http://master.php.net/manage/user-notes.php?action=delete+16392
http://master.php.net/manage/user-notes.php?action=reject+16392