|
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.
Navigation:
[Reply to this message]
|