Kenny Pollock Posted April 5, 2008 Share Posted April 5, 2008 Code is below. I have if ( mail () ) and it's showing the successful message... but when I check my email inbox... no emails $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $msg = "<b>ORIGIN</b><br>Company: " . $_POST['origin_company'] . "<br>Address: " . $_POST['origin_address'] . "<br>City: " . $_POST['origin_city'] . "<br>State: " . $_POST['origin_state'] . "<br>Zip Code: " . $_POST['origin_zip'] . "<br>Phone #: " . $_POST['origin_phone'] . "<br>Cell Phone #: " . $_POST['origin_cell_phone'] . "<br>Work Phone #: " . $_POST['origin_work_phone'] . "<br>Contact: " . $_POST['origin_contact'] . "<br>Ready Date: " . $_POST['pickup_date'] . "<br><br><b>DESTINATION</b><br>Company: " . $_POST['destination_company'] . "<br>Address: " . $_POST['destination_address'] . "<br>City: " . $_POST['destination_city'] . "<br>State: " . $_POST['destination_state'] . "<br>Zip Code: " . $_POST['destination_zip'] . "<br>Phone #: " . $_POST['destination_phone'] . "<br>Cell Phone #: " . $_POST['destination_cell_phone'] . "<br>Work Phone #: " . $_POST['destination_work_phone'] . "<br>Contact: " . $_POST['destination_contact'] . "<br>"; foreach ($_POST['make'] as $x=>$value) { $msg .= "VIN #: " . $_POST['vin'][$x] . "<br>Color: " . $_POST['color'][$x] . "<br>" . $_POST['yr'][$x] . " " . $_POST['make'][$x] . " " . $_POST['model'][$x] . "<br>Operable?" . $_POST['op'][$x] . "<br>"; } if ( mail('me@mydomain.com', 'Order from the website', $msg, $headers) ) { echo '<h2>Order Complete</h2><p>You will be contacted shortly to finalize the details.</p>'; } Quote Link to comment Share on other sites More sharing options...
Kenny Pollock Posted April 5, 2008 Author Share Posted April 5, 2008 Anyone? Quote Link to comment Share on other sites More sharing options...
Kenny Pollock Posted April 6, 2008 Author Share Posted April 6, 2008 No one? Quote Link to comment Share on other sites More sharing options...
maexus Posted April 6, 2008 Share Posted April 6, 2008 Your ISP could be blocking your smtp port? Quote Link to comment Share on other sites More sharing options...
Kenny Pollock Posted April 6, 2008 Author Share Posted April 6, 2008 My ISP? I'm assuming you mean hosting provider? And how would I know? Quote Link to comment Share on other sites More sharing options...
maexus Posted April 6, 2008 Share Posted April 6, 2008 If you aren't running the script locally, then yes your host. In fact, I would ask your host if they have a specific setup to send mail from PHP. I know Godaddy does. 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.