This is a discussion on very quick php email question within the PHP Language forums, part of the PHP Programming Forums category; hi all, a quick question... been doing a bunch of reading this morning, the web and here, and am curious ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hi all, a quick question...
been doing a bunch of reading this morning, the web and here, and am curious whether or not an html/php page that is displayed on the screen (with unique information) can also be sent via email without actually having to go through and have another page recreate the page using the $header = "this", $header .= "that" process? Im thinking, php creates the page the standard way, the last part of it would send the email, then the page would also be sent for viewing on screen. Closest thing that comes to mind is do the email page first the normal way, then post the $header to the display page.... and simply print it. thoughts? thanks :o) |
|
|||
|
Theo <invalid@noemail.com> wrote:
[mail output of page] > Closest thing that comes to > mind is do the email page first the normal way, then post the $header to > the display page.... and simply print it. > > thoughts? Output Control: http://nl.php.net/manual/en/ref.outcontrol.php <?php ob_strart(); //usual stuff $body=pb_get_contents(); ob_end_flush(); mail(); ?> -- Daniel Tryba |
|
|||
|
Daniel Tryba <news_comp.lang.php@canopus.nl> wrote in
news:cl6tru$f1k$1@news.tue.nl: > Theo <invalid@noemail.com> wrote: > [mail output of page] >> Closest thing that comes to >> mind is do the email page first the normal way, then post the $header >> to the display page.... and simply print it. >> >> thoughts? > > Output Control: http://nl.php.net/manual/en/ref.outcontrol.php > > <?php > ob_strart(); > //usual stuff > > $body=pb_get_contents(); > ob_end_flush(); > > mail(); > ?> > > Thank You, I use the manual all the time but sometimes helps to know which keywords to use... or the function names ;o) |