Jump to content

[SOLVED] Mail Message ID


sniperscope

Recommended Posts

Hi gurus,

I have a mail code and it works for pc mail address but it does not for cellphone. i just check the cellphone company's web site and seems i am missing Message Id. If there is no Message id in the incoming mail then Server refuse it.

here is my code, but i don't know where to put Message ID even most obvious question is how to get Message ID ?

 

Thanks for any help

 

	$mailTo      = $mail_add;		
	$mailSubject = $mail_header;
	$mailFrom    = "[email protected]";
	$returnMailAddress = $mailFrom;

	$mailHeader   = "From: "        . $mailFrom . "\n";
	$mailHeader  .= "Reply-To: "    . $mailFrom . "\n";
	$mailHeader  .= "Return-Path: " . $mailFrom . "\n";
	$mailHeader  .= "MIME-Version: 1.0\n";
	$mailHeader  .= "Content-Type: text/plain; charset=\"SHIFT_JIS\"\n";
	$mailHeader  .= "Content-Transfer-Encoding: 7bit\n";
	$mailHeader  .= "X-mailer: PHP/" . phpversion();
	$mailSubject = "=?shift_jis?B?" . base64_encode( jcodeconvert( $mailSubject, 0, 2) ) . "?=";

	$body = "-------------------------------------------------\n\n";
	$body.= $mail_body ."\n\n";
	$body.= "\n-------------------------------------------------\n\n";
	$body.= "送信日時:".$crr_date."\n";
	$body.= "\n-------------------------------------------------\n\n";

	mail( $mailTo, $mailSubject, $body, $mailHeader);

Link to comment
https://forums.phpfreaks.com/topic/157923-solved-mail-message-id/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.