繁体   English   中英

您如何使电子邮件成为垃圾邮件

[英]How do you make an email go to spam

我正在写电影剧本。 我有一个基本脚本,可以将HTML电子邮件发送到两组电子邮件中。 在您输入事件信息的表格上,该信息会发送到两个用户列表,即“所需的客人”和“不想要的客人”,他们都收到相同的确切HTML电子邮件,但是我需要“不想要的客人”的电子邮件转到垃圾邮件文件夹。 因此,我对“不需要的来宾”电子邮件列表所做的就是将一堆垃圾邮件内容插入到电子邮件正文中,因为我需要将此电子邮件发送到垃圾邮件文件夹中。 “期望的来宾”电子邮件应该可以很好地转到收件箱(目前是这样)

有什么办法可以使“不需要的客人”电子邮件确定是垃圾邮件吗? 我可以通过具有不同IP和不良信誉的外部服务器发送电子邮件,以使这些电子邮件转为垃圾邮件吗?

任何输入都会有很大的帮助。

 <?php
    if(isset($_POST['submit'])) {
        $event = strtoupper($_POST['event']);
        $host = strtoupper($_POST['host']);
        $location = strtoupper($_POST['location']);
        $date = $_POST['date'];
        $start_time = $_POST['start_time'];
        $end_time = $_POST['end_time'];
        $msg = ucfirst($_POST['msg']);
        $mainuser = $_POST['mainuser'];
        $wrong_user = $_POST['wrong_user'];

    if($mainuser!='') {
        $user_mail = explode(",", $mainuser);
        $count = count($user_mail);
        $sub = "You're Invited";
        $sender = "info@cdell.me";

        for($i=0;$i<$count;$i++){
            $mail_to = $user_mail[$i];
            $mail_body =
            '<style type="text/css">
        <!--
       .style1 {color: #8f8f8f}
        -->
        </style>
        </head>

        <body style="font-family:Arial, Helvetica, sans-serif; background:#f5f5f5; line-    height:24px;">
        <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
          <tr>
            <td><img src="http://www.cdell.me/invite-site/header.png" width="600" height="200" /></td>
          </tr>
          <tr>
    <td height="50" bgcolor="#ececec"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>


      </tr>
    </table></td>
      </tr>
      <tr>
        <td bgcolor="#e0e0e0" style="padding:20px; font-size:16px; color:#8f8f8f" align="center">
    <p><strong>'.$event.'</strong></p>
    <p><strong>When:</strong> '.$date.' &nbsp; '.$start_time.' - '.$end_time.'</p>
    <p><strong>Where:</strong> '.$location.'</p>
    <p><strong>Message From '.$host.':</strong> <br /> '.$msg.'</p><br /><br /></td>
      </tr>
      <tr>
        <td bgcolor="#e0e0e0" align="center"><a href="#" style="padding-top:10px; padding-bottom:10px; padding-left:20px; padding-right:20px; font-size:24px; font-weight:bold; color:#fff; background:#2ecc71; text-decoration:none;">RSVP!</a></td>
      </tr>
      <tr>
    <td height="30" bgcolor="#e0e0e0">&nbsp;</td>
      </tr>
      <tr>
        <td height="40">&nbsp;</td>
    </tr>
      <tr>
        <td><table width="520" border="0" align="center" cellpadding="0" cellspacing="0">

          <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>




          <tr>
        <td colspan="5" style="border-bottom:solid 1px #2ecc71">&nbsp;</td>
      </tr>
    </table></td>
      </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
         <td><table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#2ecc71">
            <tr>
            <td width="40">&nbsp;</td>
            <td width="240">&nbsp;</td>
        <td width="40">&nbsp;</td>
        <td width="240">&nbsp;</td>
        <td width="40">&nbsp;</td>
      </tr>

             <td width="40">&nbsp;</td>
        <td width="240">&nbsp;</td>
        <td width="40">&nbsp;</td>
        <td width="240">&nbsp;</td>
        <td width="40">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</body>';


        $headers  = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
        $headers .= "to:".$ro['emai_addrs']."\r\n";
        $headers .= "from: ".$sender."\r\n";
        mail($mail_to, $sub, $mail_body, $headers); 
        //echo $mail_body;
}
}


    if($wrong_user!='') {
        $user_mail=explode(",", $wrong_user);
        $count=count($user_mail);
        $sub="INVITATION";
        $sender="";
        for($i=0;$i<$count;$i++) {
            $mail_to = $user_mail[$i];
            $mail_body =
            '<style type="text/css">
            <!--
            .style1 {color: #8f8f8f}
            -->
            </style>
            </head>

            <body style="font-family:Arial, Helvetica, sans-serif; background:#f5f5f5; line-height:24px;">
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
              <tr>
                <td><img src="http://www.cdell.me/invite-site/header.png" width="600" height="200" /></td>
              </tr>
              <tr>
                <td height="50" bgcolor="#ececec"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>


                  </tr>
                </table></td>
              </tr>
              <tr>
                <td bgcolor="#e0e0e0" style="padding:20px; font-size:16px; color:#8f8f8f" align="center">
                <p><strong>'.$event.'</strong></p>
                <p><strong>When:</strong> '.$date.' &nbsp; '.$start_time.' - '.$end_time.'</p>
                <p><strong>Where:</strong> '.$location.'</p>
                <p><strong>Message From '.$host.':</strong> <br /> '.$msg.'</p><br /><br /></td>
              </tr>
              <tr>
                <td bgcolor="#e0e0e0" align="center"><a href="#" style="padding-top:10px; padding-bottom:10px; padding-left:20px; padding-right:20px; font-size:24px; font-weight:bold; color:#fff; background:#2ecc71; text-decoration:none;">RSVP!</a></td>
              </tr>
              <tr>
                <td height="30" bgcolor="#e0e0e0">&nbsp;</td>
              </tr>
              <tr>
                <td height="40" style="color:white;">&nbsp;9 INCH PENIS, SPAM EMAIL, THIS IS SPAM, 10 INCH PENIS, VIAGRA, PENIS ENLARGMENT, NIGERAIAN $$$100,000,000.00, FREE CREDIT REPORT, FREE 10 INCH PENIS ENLARGER, CLICK HERE FOR FREE VIAGRA WIN A FREE CAR!!! WORTH 10K$$$, NO CREDIT CHECK PAYDAY LOANS, CAR LOANS, INHERIT $10,675,981.98 US CURRENCY FROM NIGERIAN PRINCE US BANK ACCOUNT NEEDED</td>
              </tr>
              <tr>
                <td><table width="520" border="0" align="center" cellpadding="0" cellspacing="0">

                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>




                  <tr>
                    <td colspan="5" style="border-bottom:solid 1px #2ecc71">&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td style="color:23cc71;"><table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#2ecc71" style="color:23cc71;">
                  <tr>
                    <td bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;
                    9 INCH PENIS, SPAM EMAIL, THIS IS SPAM, 10 INCH PENIS, VIAGRA, PENIS ENLARGMENT, NIGERAIAN $$$100,000,000.00, FREE CREDIT REPORT, FREE 10 INCH PENIS ENLARGER, CLICK HERE FOR FREE VIAGRA</td>
                    <td width="240" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;WIN A FREE CAR!!! WORTH 10K$$$, NO CREDIT CHECK PAYDAY LOANS, CAR LOANS, INHERIT $10,675,981.98 US CURRENCY FROM NIGERIAN PRINCE US BANK ACCOUNT NEEDED</td>
                    <td width="40" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;</td>
                    <td width="240" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;</td>
                    <td width="40" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;</td>
                  </tr>

                    <td width="40" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp; 9 INCH PENIS, SPAM EMAIL, THIS IS SPAM, 10 INCH PENIS, VIAGRA, PENIS ENLARGMENT, NIGERAIAN $$$100,000,000.00, FREE CREDIT REPORT, FREE 10 INCH PENIS ENLARGER, CLICK HERE FOR FREE VIAGRA</td>
                    <td width="240" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;</td>
                    <td width="40" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;</td>
                    <td width="240" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp; 9 INCH PENIS, SPAM EMAIL, THIS IS SPAM, 10 INCH PENIS, VIAGRA, PENIS ENLARGMENT, NIGERAIAN $$$100,000,000.00, FREE CREDIT REPORT, FREE 10 INCH PENIS ENLARGER, CLICK HERE FOR FREE VIAGRA</td>
                    <td width="40" bgcolor="#2ecc71" style=" color:#2ecc71;" align="center">&nbsp;
                       <!-- Spam Pixel Images -->
                    <img src="http://www.cdell.me/invite-site/green-pixel1.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel2.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel3.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel4.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel5.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel6.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel7.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel8.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel9.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel10.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel11.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel12.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel13.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel14.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel15.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel16.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel17.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel18.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel19.png" />
                    <img src="http://www.cdell.me/invite-site/green-pixel20.png" />
                    </td>

                  </tr>
                </table></td>
              </tr>
            </table>
            </body>';

        $headers  = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type: text/html;" . "\r\n";
        $headers .= "to:".$ro['emai_addrs']."\r\n";
        $headers .= "from: ".$sender."\r\n";
        mail($mail_to, $sub, $mail_body, $headers); 
        //echo $mail_body;
}
}

        $var = "Invitation Sent Successfully";


}

您是否尝试过添加与X-Spam相关的标头,以冒充被Spam Assassin抓获的东西?

如果不是这样,您可能需要研究一些标题:

  • X垃圾邮件分数
  • X垃圾邮件级别
  • X垃圾邮件状态
  • X垃圾邮件标志
  • X垃圾邮件报告

更多信息:

https://www.lamphost.com/Knowledge_Base/What_headers_are_added_to_emails_that_are_scanned_by_SpamAssassintint

您可以做很多事情来将其标记为垃圾邮件,但是,如果有人将您列为“安全发件人”,则可能无法100%保证。

您可以使用很多关键字,它们也不必是阴暗的单词。 过去,我曾遇到过仅使用大量资金,感叹号和“免费”一词的问题。

Litmus是检查不同邮件客户端中垃圾邮件分数的绝佳工具。 对于大多数垃圾邮件软件来说,它是一个累积分数,因此您可以轻松地识别出最坏(或您认为是最好)的罪魁祸首。

只是黑名单 IP地址,也各自黑名单服务器都有自己的上市标准,可能包括技术清单,政策清单,并根据证据清单 技术清单是那些主要由邮件服务器配置问题引起的清单,例如缺少或不正确的反向DNS记录,缺少不正确的横幅问候以及在ISP指定不应在其中运行邮件服务器的IP地址空间中运行的邮件服务器。列表是基于不希望从某些国家或ISP接收电子邮件的运营商,或具有不接受取消订阅请求的历史的运营商。 基于证据的列表是指操作员已收到直接(或间接)证据,表明IP地址已包含在发送不请自来的电子邮件中的列表。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM