[thelist] Double Emails with PHPmail

Marek Kilimajer kilimajer at webglobe.sk
Fri Jul 25 04:21:49 CDT 2003


If you realy need it, you can turn output buffering on.

Rob Smith wrote:

> <snip>
> Yet I receive the first email twice. The date/time sent are identical on
> both emails as well as the second emails. 
> </snip>
> 
> I did some more testing last night on this. I even created a new test page
> with the basic PHP mail structure and it of course sent only one email
> message. So, I'm the problem, not the ISP :-\
> 
> I think I'll put the "Thank you for your order" and mailings on a separate
> page, which I can do. But now my question is this:
> 
> In asp you can put a <% response.redirect("newpage.htm") %>, but the catch
> is you have to place this before anything is written on the page.
> 
> In PHP, you'd write something like <?php header("Location: newpage.htm"); ?>
> 
> Can you write the php version after anything is written on the page?
> 
> Rob.Smith



More information about the thelist mailing list