mr.jiggles Posted May 19, 2009 Share Posted May 19, 2009 Please have a look at the code below and tell me wtf I have done wrong here - the email doesn't get through unless I send it to a few specific addresses. If I have it sent to my main email account it works fine, if I have it send to my hotmail account also fine. However every single other address I have sent it to it doesn't doesn't get through. Has nothing to do with spam filtering on other account, have eliminated that as an issue. Why would it only send to these 2 specific but totally unrelated email addresses. I'm completely stuck on this one. $message = "<b><font color = red>Client Details</font></b><p>" . "Company : " . $company . "<p>" . "Contact : " . $contact . "<p>" . "Phone : " . $telephone . "<p>" . "Fax : " . $facsimile . "<p>" . "Email : " . $email . "<p>" . "<b>" . $order . "</b>" . "<p>" . "<b><font color = red>Job Details</font></b></p>" . "Job Name : " . $job_name . "<p>" . "Job Desc : " . $description . "<p>" . "Size : " . $size . "<p>" . "<b><font color = red>Stock</font></b></p>" . "Stock Colour : " .$stock_colour . "</p>" . "Stock GSM : " . $stock_gsm . "<p>" . "Stock Type : " .$stock_type. "<p>" . "Stock Finish : " .$stock_finish . "<p>" . "<b><font color = red>Colours</font></b></p>" . "4 Colour Process : " . $process_colours . "<p>" . "Spot Colours : " .$spot_colours. "<p>" . "<b><font color = red>Finishing</font></b></p>" . "Finish : " . $finish . "<p>" . "Finish Other : " . $finishing_other . "<p>" . "<b><font color = red>Format</font></b></p>" . "Format : " .$format . "<p>" . "Please Recommend Format : " .$recommend_format. "<p>" . "<b><font color = red>Quantity</font></b></p>" . "Quantity Menu : " . $quantity_choice. "<p>" . "Quantity Other : " . $quantity_other . "<p>". "<b><font color = red>Additional Comments</font></b></p>" . "Added Info : " .$added_info. "<p>"; $subject = "Request from printingxxx.com"; $from = "admin@printingXXX.com"; $email = "xxx@xxx.com"; mail($email, $subject, $message, "To:\n" . "From: admin@xxx.com.au\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); Quote Link to comment Share on other sites More sharing options...
Masna Posted May 19, 2009 Share Posted May 19, 2009 Try each one (or all) of these following three ini-sets: $your_site = "site.com"; //change this to your domain ini_set("SMTP","mail.".$your_site.".com"); ini_set("smtp_port","25"); ini_set("sendmail_from", "info@".$your_site.".com"); Quote Link to comment Share on other sites More sharing options...
mr.jiggles Posted May 19, 2009 Author Share Posted May 19, 2009 You're a genius ... I'm not sure why that made such a difference but it works. Thanks 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.