sniperscope Posted May 13, 2009 Share Posted May 13, 2009 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 = "info@example.com"; $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); 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.