电子邮件发送(垃圾邮件?) - 某些ISP电子邮件未收到电子邮件

时间:2014-12-17 19:28:16

标签: codeigniter email spam

我遇到的问题是某些电子邮件未通过某些ISP电子邮件地址发送 用户报告的常见电子邮件示例:“xx@free.fr”,“@ bellsouth.net”

我真的没有办法“测试”为什么他们没有收到电子邮件。我告诉他们验证垃圾邮件文件夹,但他们不在那里..我有流行的电子邮件服务“gmail,hotmail”的测试帐户,他们工作正常。

我发送的电子邮件是来自我的域名网站的常见电子邮件(注册,确认帐户,忘记密码)。我不发送任何批量电子邮件。我正在使用goDaddy作为托管服务。

我已经在我的域上设置了SPF,并且使用PHP发送了电子邮件(codeIgniter) - 请参阅底部,了解如何使用代码发送邮件

以下是我发送的邮件的示例,这些邮件被这些ISP阻止:

Delivered-To: tdfdestgmfdsailmaxmt123okdddf3@gmail.com
Received: by 10.112.159.166 with SMTP id xd6csp1482168lbb;
        Wed, 17 Dec 2014 10:27:57 -0800 (PST)
X-Received: by 10.50.61.238 with SMTP id t14mr9680303igr.34.1418840877015;
        Wed, 17 Dec 2014 10:27:57 -0800 (PST)
Return-Path: <admin@maximumtrainer.com>
Received: from p3nlsmtpcp01-03.prod.phx3.secureserver.net (p3nlsmtpcp01-03.prod.phx3.secureserver.net. [184.168.200.142])
        by mx.google.com with ESMTP id hh16si4059486icb.62.2014.12.17.10.27.56
        for <tdfdestgmfdsailmaxmt123okdddf3@gmail.com>;
        Wed, 17 Dec 2014 10:27:56 -0800 (PST)
Received-SPF: pass (google.com: domain of admin@maximumtrainer.com designates 184.168.200.142 as permitted sender) client-ip=184.168.200.142;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of admin@maximumtrainer.com designates 184.168.200.142 as permitted sender) smtp.mail=admin@maximumtrainer.com
Received: from p3plcpnl0063.prod.phx3.secureserver.net ([184.168.200.112])
    by p3nlsmtpcp01-03.prod.phx3.secureserver.net with : CPANEL :
    id UiR51p01s2S0Aj401iR5yP; Wed, 17 Dec 2014 11:25:05 -0700
Received: from p3plcpnl0063.prod.phx3.secureserver.net ([184.168.200.112]:34603 helo=maximumtrainer.com)
    by p3plcpnl0063.prod.phx3.secureserver.net with esmtpa (Exim 4.84)
    (envelope-from <admin@maximumtrainer.com>)
    id 1Y1JKF-0001bp-W0
    for tdfdestgmfdsailmaxmt123okdddf3@gmail.com; Wed, 17 Dec 2014 11:27:56 -0700
User-Agent: CodeIgniter
Date: Wed, 17 Dec 2014 18:27:55 +0000
From: "Maximum Trainer" <admin@maximumtrainer.com>
To: tdfdestgmfdsailmaxmt123okdddf3@gmail.com
Subject: =?utf-8?Q?Bienvenue?=
Reply-To: "admin@maximumtrainer.com" <admin@maximumtrainer.com>
X-Sender: admin@maximumtrainer.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <5491cb2be1fa8@maximumtrainer.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - p3plcpnl0063.prod.phx3.secureserver.net
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - maximumtrainer.com
X-Get-Message-Sender-Via: p3plcpnl0063.prod.phx3.secureserver.net: authenticated_id: admin@maximumtrainer.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 

CodeIgniter发件人功能:

function send_confirmation_mail($email, $first_name, $confirm_code) {

    $CI =& get_instance();
    $CI->load->library('email'); // load library

    $CI->email->from ( 'admin@maximumtrainer.com', 'Maximum Trainer' );
    $CI->email->to ( $email );
    $CI->email->subject ( lang('email_activate_title') );   

    $link =  base_url(). index_page(). lang('url_confirm_user').  "/". $confirm_code;

    $message = lang('email_hello'). $first_name. ", \r\n". 
            lang('email_activate_thank_you'). "\r\n\r\n".
            lang('email_activate_click_link'). "\r\n".
            $link. "\r\n\r\n".
            lang('email_activate_farewwell'). "\r\n".
            lang('email_linkMT');

    $CI->email->message( $message );

    if ( ! $CI->email->send()) {
        $CI->messages->add("error send_confirmation_mail", "error");
        return false;
    }
    return true;
}

服务器配置:

$config['useragent']        = 'CodeIgniter';        
$config['protocol']         = 'smtp';        
#$config['mailpath']         = '/usr/sbin/sendmail';
$config['smtp_host']        = 'p3plcpnl0063.prod.phx3.secureserver.net';
$config['smtp_user']        = 'yyyyyy@maximumtrainer.com';
$config['smtp_pass']        = 'xxxxxxx';
$config['smtp_port']        = 25;  #465 to test doesnt seem to work
$config['smtp_timeout']     = 5;
$config['wordwrap']         = FALSE;
$config['wrapchars']        = 76;
$config['mailtype']         = 'text';
$config['charset']          = 'utf-8';
$config['validate']         = FALSE;
$config['priority']         = 3;
$config['crlf']             = "\r\n";
$config['newline']          = "\r\n";
$config['bcc_batch_mode']   = FALSE;
$config['bcc_batch_size']   = 200;

是否有任何服务可以诊断可能导致问题的原因?我无法免费注册这些电子邮件提供商以进行测试。

0 个答案:

没有答案