【问题标题】:php mail spam problems [duplicate]php邮件垃圾邮件问题[重复]
【发布时间】:2015-05-18 14:27:09
【问题描述】:
 $to      = $_POST['email'];
        $subject = 'Your password';
        $message = $_POST['password'];
        $headers = 'From: https://client.yourtradechoice.com/ no_reply@yourtradechoice.com' . "\r\n" ;
        $headers .='Reply-To: '. $to . "\r\n" ;
        $headers .='X-Mailer: PHP/' . phpversion();
        $headers .= "MIME-Version: 1.0\r\n";
        $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";   
        mail($to, $subject, $message, $headers);

垃圾邮件中的邮件如何解决?

【问题讨论】:

    标签: php email


    【解决方案1】:

    不要使用php邮件功能发送邮件。使用 Swiftmailer 之类的 php mailer 脚本并使用 SMTP 服务器发送电子邮件。

    【讨论】:

      猜你喜欢
      • 2019-01-23
      • 2019-07-19
      • 1970-01-01
      • 1970-01-01
      • 2015-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-21
      相关资源
      最近更新 更多