send contents of page in email

send contents of page in email

am 16.11.2007 04:52:44 von jsd219

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

Re: send contents of page in email

am 16.11.2007 09:40:14 von Erwin Moller

jsd219 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?

Sure.
What did you try so far?
Did you use PHP's mail function or some package (Mimemail eg)


>
> God bless

No thanks.

> jason

Regards,
Erwin Moller

Re: send contents of page in email

am 19.11.2007 00:30:07 von sun5

isn't that cute!!!! a little dutch atheist homo :)


On Fri, 16 Nov 2007 09:40:14 +0100, Erwin Moller
wrote:

>
>>
>> God bless
>
>No thanks.
>
>Regards,
>Erwin Moller

Re: send contents of page in email

am 19.11.2007 12:46:15 von Erwin Moller

sun5 wrote:
> isn't that cute!!!! a little dutch atheist homo :)

Dutch? Yeah.
Atheist? Sure.
Homo? Last time I checked: No.
Which is a shame. DAH (Dutch Atheist Homo) has such a nice tone to it.
;-)
Anyway, Dutch Atheist Hetero is enough for me.

Erwin the dutchman


>
>
> On Fri, 16 Nov 2007 09:40:14 +0100, Erwin Moller
> wrote:
>
>>> God bless
>> No thanks.
>>
>> Regards,
>> Erwin Moller
>

Re: send contents of page in email

am 19.11.2007 18:20:36 von luiheidsgoeroe

On Mon, 19 Nov 2007 12:46:15 +0100, Erwin Moller
wrote:

> sun5 wrote:
>> isn't that cute!!!! a little dutch atheist homo :)
>
> Dutch? Yeah.
> Atheist? Sure.
> Homo? Last time I checked: No.
> Which is a shame. DAH (Dutch Atheist Homo) has such a nice tone to it.
> ;-)
> Anyway, Dutch Atheist Hetero is enough for me.
>
> Erwin the dutchman

OK, we know about being dutch, being atheist, being hetero. What about
'little' and 'cute'? LDACH has a nice ring to it. Or possibly DALCH. CLADH
doesn't trike my fancy though.
--
Rik Wasmus, BADUH

Re: send contents of page in email

am 20.11.2007 18:43:36 von BRADINO

On Nov 15, 7:52 pm, jsd219 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.