Jump to content

Another strange mail problem ... shouldn't exist


mr.jiggles

Recommended Posts

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");

Link to comment
Share on other sites

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");

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.