note 99064 added to function.eval
| From: | it at rustenburger dot co dot za | Date: | Mon, 26 Jul 2010 08:07:13 +0000 |
| Subject: | note 99064 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171117@lists.php.net to get a copy of this message | ||
When creating emails with variables I use the following code
//html email create
ob_start();
include 'mail.html';
$html=ob_get_clean();
//text email create
ob_start();
include 'mail.txt';
$text=ob_get_clean();
The template files contain the content with the variables in the form:
<?php echo " ".$name;?>
Easy!
----
Server IP: 69.147.83.197
Probable Submitter: 41.185.80.50
----
Manual Page -- http://www.php.net/manual/en/function.eval.php
Edit -- https://master.php.net/note/edit/99064
Del: integrated -- https://master.php.net/note/delete/99064/integrated
Del: useless -- https://master.php.net/note/delete/99064/useless
Del: bad code -- https://master.php.net/note/delete/99064/bad+code
Del: spam -- https://master.php.net/note/delete/99064/spam
Del: non-english -- https://master.php.net/note/delete/99064/non-english
Del: in docs -- https://master.php.net/note/delete/99064/in+docs
Del: other reasons-- https://master.php.net/note/delete/99064
Reject -- https://master.php.net/note/reject/99064
Search -- https://master.php.net/manage/user-notes.php