can you put some output in the function itself to see if its the function that blowing up and or if its the mail call...

bastien


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Bastien Koert <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail & Header Redirect
Date: Tue, 05 Oct 2004 14:50:37 -0400


_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.
--- Begin Message ---

Still doesn't redirect, thanks though. :)----- Original Message -----

From: Bastien Koert <[EMAIL PROTECTED]>

Date: Tuesday, October 5, 2004 1:42 pm

Subject: Re: [PHP-DB] Mail & Header Redirect

> so try
>
> if ($sent==true) {
> mailsent();
> }
>
> bastien
>
> >From: "Valerie" <[EMAIL PROTECTED]>
> >To: "Bastien Koert" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> >Subject: Re: [PHP-DB] Mail & Header Redirect
> >Date: Tue, 5 Oct 2004 12:34:27 -0400
> >
> >When I echo $sent, it returns 1.
> >Thanks,
> >Valerie
> >----- Original Message ----- From: "Bastien Koert"
> <[EMAIL PROTECTED]>>To: <[EMAIL PROTECTED]>; <php-
> [EMAIL PROTECTED]>>Sent: Tuesday, October 05, 2004 10:03 AM
> >Subject: RE: [PHP-DB] Mail & Header Redirect
> >
> >
> >>if you echo $Sent, what do you get?
> >>
> >>bastien
> >>
> >>
> >>>From: "Valerie" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Subject: [PHP-DB] Mail & Header Redirect
> >>>Date: Tue, 5 Oct 2004 08:24:26 -0400
> >>>
> >>>I have an email that is sent upon submission of a form. I need
> to
> >>>redirect to a confirmation page if email is sent successfully.
> I thought
> >>>the problem was that my email headers are already being sent,
> but when I
> >>>removed them it still did not work. I need to bcc as well.
> >>>
> >>>headers:
> >>>
> >>><?php function mailsent(){header("location:
> >>>http://www.justustwo.com/vals/thankyou.html");exit();}
> >>>
> >>>And mailing:
> >>>
> >>>/*Mailing*/
> >>> $to="[EMAIL PROTECTED]";
> >>> $subject="AVC received a quote request!";
> >>> $message="
> >>> <H3 align='center'>AVC received a quote request from
> $name</h3>>>> <h4><table cellpadding='5' cellspacing='0'
> align='center'
> >>>border='1'>
> >>> <tr>
> >>> <td>Email:</td>
> >>> <td>$email</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Phone:</td>
> >>> <td>$phone</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Indoors/Outdoors:</td>
> >>> <td>$where</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Type of Stock:</td>
> >>> <td>$m</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Quantity:</td>
> >>> <td>$quantity</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Sides:</td>
> >>> <td>$s</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Colors:</td>
> >>> <td>$colors</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Finishing:</td>
> >>> <td>$finish</td>
> >>> </tr>
> >>> <tr>
> >>> <td>Comments:</td>
> >>> <td>$c</td>
> >>> </tr>
> >>> </table></h4>";
> >>>
> >>> /* set the Content-type header. */
> >>> $headers = "MIME-Version: 1.0\n";
> >>> $headers .= "Content-type: text/html; charset=iso-8859-1\n\r";
> >>> /* additional headers */
> >>> $headers .= "From:AVCQuoteRequest";
> >>> $headers .= "Bcc: [EMAIL PROTECTED]";
> >>> $sent=mail($to,$subject,$message,$headers);
> >>> if ($sent) {
> >>> mailsent();
> >>> }
> >>> else {
> >>> $errormessage="<h2 class=\"error2\">**There was an error.
> Please
> >>>call 1-800-548-4449</h2>";
> >>> echo $errormessage;
> >>> exit;
> >>> }
> >>>
> >>
> >>_________________________________________________________________
> >>Scan and help eliminate destructive viruses from your inbound
> and outbound
> >>e-mail and attachments.
> >>http://join.msn.com/?pgmarket=en-
> ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
> >>Start enjoying all the benefits of MSN® Premium right now and
> get the
> >>first two months FREE*.
> >>
> >
> >--
> >PHP Database Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> _________________________________________________________________
> Take advantage of powerful junk e-mail filters built on patented
> Microsoft®
> SmartScreen Technology.
> http://join.msn.com/?pgmarket=en-
> ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
> Start enjoying all the benefits of MSN® Premium right now and
> get the
> first two months FREE*.
>
>
--- End Message ---
-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to