Yes. I'm sure you could just mail out the table in an email. You'd have to
do it as a multipart email (i think that's what it's called) as just mailing
out the html code wouldn't show as a table in a mail client.
Here's the source of a HTML spam I got this morning - should give you an
idea how to do it.  Note: you still mail out using the mail() function.

Received: from ([]) by with Microsoft SMTPSVC(5.0.2195.4905);
  Sat, 13 Jul 2002 02:38:25 -0700
Received: (qmail 22574 invoked from network); 12 Jul 2002 23:51:55 -0000
Received: from unknown (HELO CAMPAIGN) (
  by 0 with SMTP; 12 Jul 2002 23:51:55 -0000
From: AccuLotto <[EMAIL PROTECTED]>
Subject: WIN $10,000 in 6 months - Guaranteed! [EMAIL PROTECTED]
Date: Fri, 12 Jul 2002 19:54:23 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="Boundary.11111111.11111111"
X-OriginalArrivalTime: 13 Jul 2002 09:38:25.0416 (UTC)

Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

This message can only be viewed in HTML

Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit


<A HREF=""; TARGET="_blank">

<IMG SRC="";

<font face="Verdana, Arial, Helvetica, sans-serif" size="1">If the above
do not work or appear, simply copy this URL and paste it into your browser's
address field:<br> </font><font face="Verdana, Arial, Helvetica, sans-serif"
size="1" color="#FFFFFF">
<a href=""; TARGET="_blank"></a></font><br><br><br></center>
<HR SIZE=1 width="90%">

<p align="justify"><font size="-2">

Note: This email was sent to you because you registered at and
subscribed to this newsletter. The email address was then verified and the
agreement confirmed by someone responding from your email address that
required confirmation of registration. This is a double opt-in list and can
NOT in any way be construed as spam. If you wish to unsubscribe from, please click the link below:<br>
<a href="";>Unsubscribe Here</a><br>
and you will never receive another wonderful, free offer from us! Please
note, it may take up to a week for you to be removed from our database.<br>


"Manuel" <[EMAIL PROTECTED]> wrote in message
> I need to query a database and return a resultset. A php script will then
sort through the data and send the data to the browser in the form of a
> Is it possible to gather the the results with html tags and store them in
a variable so that the results can be emailed to someone? If so, how would
this be done?
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to