if you echo $Sent, what do you get?


From: "Valerie" <[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.


<?php function mailsent(){header("location: http://www.justustwo.com/vals/thankyou.html";);exit();}

And mailing:

   $subject="AVC received a quote request!";
    <H3 align='center'>AVC received a quote request from $name</h3>
     <h4><table cellpadding='5' cellspacing='0' align='center' border='1'>
     <td>Type of Stock:</td>

/* 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]";
if ($sent) {
else {
$errormessage="<h2 class=\"error2\">**There was an error. Please call 1-800-548-4449</h2>";
echo $errormessage;

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

Reply via email to