Reply to Re: send contents of page in email

Your name:

Reply:


Posted by BRADINO on 11/20/07 17:43

On Nov 15, 7:52 pm, jsd219 <i...@musiclanerecording.com> wrote:
> is there not an easy way to simply send the contents of a page in the
> body of an email? i.e. i have a report.php that pulls from a mysql db.
> i need to be able to send the displayed file right in the body of the
> email. can anyone help with this?
>
> God bless
> jason

Why not do it from another page that reads the report.php file in as
the message and sends it out? Something ultra-simple like this?

$message = file_get_contents('report.php');
mail('you@example.com','My Report Subject',$message);

If you want more control over the mail message format I would
recommend using the Zend Mail class.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация