Re: new ways to add an html body?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Ross,

Sunday, September 25, 2005, 2:27:42 PM, you wrote:

> I am using php mailer and am trying to find a new way to make the html email
> body instead of the old

> Can I make a whole html mage and just link it?? Or include ('mypage.htm')

$mail_body = file_get_contents('path/to/your/html/email.html');

Will save embedding all that HTML into your PHP scripts. You could
then do simply variable replacement on $mail_body to customise the
messages if you so wish.

-- 
Best regards,
 Richard Davey
 Zend Certified Engineer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux