Hi steve,

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 12:14 PM
Subject: [wdvltalk] php mail functions


> Help! I am having all sorts of odd problems. I have a page that just will
> not mail twice or re-direct. The code below is similar to what I have; the
> alerts are there just for checking what is going on.
>
> If "something" is true, help1 alerts, the first mail goes, help2 alerts,
> the second mail fails, help3 alerts, the header fails, and help4 alerts,
> and no error messages.
>
> If "something" is false, help2 alerts, the second mail goes, help3 alerts,
> the header fails, and help4 alerts, and no error messages.
>
> If I comment out the mails, the correct alerts fire, but the header fails.
> Can anyone see something wrong?
> Many Thanks for any help.
> steve miller
>
> if(something)
> {
> echo"<script>alert('help1')</script>";
> mail($mailto,$mailsubject,$mailbody,$mailfrom);
> }
> echo"<script>alert('help2')</script>";
> mail($mailto,$mailsubject,$mailbody,$mailfrom);
> echo"<script>alert('help3')</script>";
> header ("Location: go_here.phtml?mm=153");
> echo"<script>alert('help4')</script>";
>


first of all , header() function will not work if something is already sent
to the browser ( that means once your echo statement is processed, header
will fail.

I can't see any reason why the second mail() function will fail. may be if
you post your full code I can see something

HTH
-R'twick



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to