very quick php email question

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-20-2004
Theo
 
Posts: n/a
Default very quick php email question

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)
Reply With Quote
  #2 (permalink)  
Old 10-21-2004
Daniel Tryba
 
Posts: n/a
Default Re: very quick php email question

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

Reply With Quote
  #3 (permalink)  
Old 10-21-2004
Theo
 
Posts: n/a
Default Re: very quick php email question

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)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0