Re: Sending a generated page through mail(smtp)

From: Date: Thu, 30 Nov 2000 19:16:11 +0000
Subject: Re: Sending a generated page through mail(smtp)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28107@lists.php.net to get a copy of this message
Stefan Truniger wrote: > > Hello there, > > I wonder if anyone has a solution for the following: > > I generate a table out of information in a MySQL DB and send it through an > echo command to the browser. > Now I would like to add a service that sends exactly this generated table > through smtp to a specified email adress. > I know how to implement an SMTP mailer, can't figure out how i can easily > send the table though. If I understand you correctly: concat each output from the db query into a variable. Send this via the mail function. I.E. while ($query_is_happening) { // you can format this anyway you want $message .= "\n" . $row->la ; } //check the params for mail function from the manual mail ($user, $message, blah, blah); -- Christopher C.M. Allen

« previous php.general (#28107) next »