freeze mobile Posted January 13, 2009 Share Posted January 13, 2009 Hello, can anyone help out with this browser reports Warning: mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox unavailable or not local in C:\Inetpub\vhosts\fleetderivatives.com\httpdocs\request.php on line 73 Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\fleetderivatives.com\httpdocs\request.php:73) in C:\Inetpub\vhosts\fleetderivatives.com\httpdocs\request.php on line 75, please below is the whole php code.... <?php $mailto = 'customercare@fleetderivativescom' ; $subject = "Request Form" ; $formurl = "http://www.fleetderivatives.com/book.html" ; $errorurl = "http://www.fleetderivatives.com/error.html" ; $thankyouurl = "http://www.fleetderivatives.com/complete.html" ; $email_is_required = 1; $name_is_required = 1; $uself = 0; $use_envsender = 0; $use_webmaster_email_for_from = 0; $use_utf8 = 1; $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ; $content_type = (!isset( $use_utf8 ) || ($use_utf8 == 0)) ? 'Content-Type: text/plain; charset="iso-8859-1"' : 'Content-Type: text/plain; charset="utf-8"' ; if (!isset( $use_envsender )) { $use_envsender = 0 ; } $envsender = "-f$mailto" ; $name = $_POST['name'] ; $address = $_POST['address'] ; $vehicle = $_POST['vehicle'] ; $deliveryaddress = $_POST['deliveryaddress'] ; $deliveryperiod = $_POST['deliveryperiod'] ; $usagedetails = $_POST['usagedetails'] ; $telephone = $_POST['telephone'] ; $email = $_POST['email'] ; $othernecessarydetails = $_POST['othernecessarydetails'] ; $http_referrer = getenv( "HTTP_REFERER" ); if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; } if (($email_is_required && (empty($email) || !ereg("@", $email))) || ($name_is_required && empty($name))) { header( "Location: $errorurl" ); exit ; } if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) { header( "Location: $errorurl" ); exit ; } if (empty($email)) { $email = $mailto ; } $fromemail = (!isset( $use_webmaster_email_for_from ) || ($use_webmaster_email_for_from == 0)) ? $email : $mailto ; if (get_magic_quotes_gpc()) { $telephone = stripslashes( $telephone ); } $messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n" . "Name of sender: $name\n" . "Address: $address\n" . "Type Of Vehicle: $vehicle\n" . "Delivery Address: $deliveryaddress\n" . "Delivery Date & Time: $deliveryperiod\n" . "Usage Details: $usagedetails\n" . "Telephone: $telephone\n" . "Email: $email\n" . "Other Necessary Details: $othernecessarydetails\n" . "------------------------- REQUESTS -------------------------\n\n" . $telephone . "\n\n------------------------------------------------------------\n" ; $headers = "From: \"$name\" <$fromemail>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chrequest.php 2.13.0" . $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ; if ($use_envsender) { mail($mailto, $subject, $messageproper, $headers, $envsender ); } else { mail($mailto, $subject, $messageproper, $headers ); } header( "Location: $thankyouurl" ); exit ; ?> Quote Link to comment Share on other sites More sharing options...
rhodesa Posted January 13, 2009 Share Posted January 13, 2009 your emailaddress here is missing the dot before come: $mailto = 'customercare@fleetderivativescom' ; should be: $mailto = 'customercare@fleetderivatives.com' ; Quote Link to comment Share on other sites More sharing options...
freeze mobile Posted January 13, 2009 Author Share Posted January 13, 2009 Thank You very much Mr. Rhodesa....... The Only problem is it keeps returning the reply. Okay it works perfectly sending mail to a yahoo mail addy, but wont to the supposed address customercare@fleetderivatives.com, Please I really need this one Quote Link to comment Share on other sites More sharing options...
rhodesa Posted January 13, 2009 Share Posted January 13, 2009 what do you mean by "returning the reply" Quote Link to comment Share on other sites More sharing options...
freeze mobile Posted January 13, 2009 Author Share Posted January 13, 2009 it keeps bringing the same error Warning: mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox unavailable or not local in C:\Inetpub\vhosts\fleetderivatives.com\httpdocs\request.php on line 73 Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\fleetderivatives.com\httpdocs\request.php:73) in C:\Inetpub\vhosts\fleetderivatives.com\httpdocs\request.php on line 75, thanx for your response Quote Link to comment Share on other sites More sharing options...
rhodesa Posted January 13, 2009 Share Posted January 13, 2009 interesting...not sure...this is a hosting service right? i would give them a call, cus i don't see anything wrong with the code. their configuration might be off or they may have some special rules in place Quote Link to comment Share on other sites More sharing options...
freeze mobile Posted January 13, 2009 Author Share Posted January 13, 2009 Okay, Thanx Rhodesa Quote Link to comment Share on other sites More sharing options...
waterssaz Posted January 13, 2009 Share Posted January 13, 2009 Is the e-mail used for $mailto actually a valid e-mail address? Quote Link to comment Share on other sites More sharing options...
freeze mobile Posted January 14, 2009 Author Share Posted January 14, 2009 Yes!!! it is sir. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.