By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,636 Members | 1,693 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,636 IT Pros & Developers. It's quick & easy.

send contents of page in email

P: n/a
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
Nov 16 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
Nov 16 '07 #2

P: n/a
isn't that cute!!!! a little dutch atheist homo :)
On Fri, 16 Nov 2007 09:40:14 +0100, Erwin Moller
<Si******************************************@spam yourself.comwrote:
>
>>
God bless

No thanks.

Regards,
Erwin Moller
Nov 18 '07 #3

P: n/a
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
<Si******************************************@spam yourself.comwrote:
>>God bless
No thanks.

Regards,
Erwin Moller
Nov 19 '07 #4

P: n/a
On Mon, 19 Nov 2007 12:46:15 +0100, Erwin Moller
<Si******************************************@spam yourself.comwrote:
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
Nov 19 '07 #5

P: n/a
On Nov 15, 7:52 pm, jsd219 <i...@musiclanerecording.comwrote:
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('y**@example.com','My Report Subject',$message);

If you want more control over the mail message format I would
recommend using the Zend Mail class.
Nov 20 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.