-2

私はphpでメーラーフォームを作成しました。これにより、メールアドレスを入力するだけで、入力したアドレスに直接メールが送信されます。これは、送信する必要があるため、愚かな時間を節約するためです。数千人。PHPは以下のとおりです。

<?php
{
$to = $_POST['contactEmail'];
$subject = "UK Exporters - Buyers of Commercial Vehicles";
$headers = "Content-type:text/html;charset=iso-8859-1";

$message = 
"
<html><head></head><body style='font-family: arial;'>      
<span style='font-weight: bold;'>To whom it may concern,</span><br /><br />

At UK Exporters, we are buyers of Scanias, Volvos, Mercedes, Renaults, DAFs.<br /> 
Runners and non-runners.<br />
4 X 2’s, 8 x 4’s, 6 x 2’s.<br /><br />

We need your old stock for export orders. Top prices paid. For export orders. If you     have any items that you believe we would be interested in purchasing then please reply and let me know. Thank you for reading this email, we hope to hear from you soon.<br /><br />

Kind regards,<br /><br />

Sam<br />
UK Exporters<br /><br />
<img src='http://uk-exporters.co.uk/emailer/card.jpg' />
</body>
</html>"
; 

mail($to, $subject, $message, $headers);
echo "Another bites the dust! :D<br /><a href='http://uk-exporters.co.uk/emailer'>Send     another</a>"?>
<?php  }
?>

私はPHPの専門家ではないので、助けていただければ幸いです。スパムとしてマークされている理由もリストしました。

Content analysis details:   (5.5 points, 5.0 required)

pts rule name              description
---- ---------------------- --------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at http://www.dnswl.org/, low
                        trust
                        [82.197.130.210 listed in list.dnswl.org]
 0.0 HTML_MESSAGE           BODY: HTML included in message
 1.8 HTML_IMAGE_ONLY_08     BODY: HTML: images with 400-800 bytes of words
 1.1 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
 1.3 RDNS_NONE              Delivered to internal network by a host with no rDNS
 2.0 MIME_HEADER_CTYPE_ONLY 'Content-Type' found without required MIME
                            headers

私がそれと一緒に画像を送ってみるまで、電子メールは完全にうまく送信されます、アイデアの人はいますか?

4

1 に答える 1

5

分析の詳細は十分に明確です。以下にヘッダーを追加して、メッセージにより適したヘッダーを作成する必要があります。

 #For 'Content-Type' found without required IME headers
 $headers .= "MIME-Version: 1.0" . "\r\n";

また、ヘッダーにFROMアドレスがないようです

 $headers  .= 'From: from@email.com' . "\r\n" .

メールヘッダーの詳細については、こちらをお読みください

于 2013-03-22T11:10:41.850 に答える