通过codeigniter电子邮件库发送的电子邮件不会出现在icloud电子邮件帐户中

时间:2017-01-10 06:33:06

标签: php codeigniter email shared-hosting

我正在使用代码点火器电子邮件库发送电子邮件,发送到gmail帐户或yahoo帐户的电子邮件正常工作但是当我尝试在icloud帐户(例如test171993@icloud.com)上发送电子邮件时,电子邮件未来在icloud帐户上。我正在使用此代码发送电子邮件

         $config = Array(
        'protocol' => 'SMTP',
        'smtp_host' => 'box397.bluehost.com',
        'smtp_port' => 587,
        'smtp_user' => 'info@virtualguestservices.com',//
        'smtp_pass' => '*********',// password of above email
        'mailtype' => 'html',
        'charset' => 'utf-8',
        'wordwrap' => TRUE
    );

    $message = '<h3>Hi,<br/><br/>
                We have received a request to reset the password for your account registered with User Id '.strtoupper($userId).'. You will be asked to change this password on login for security purpose.<br/><br/>
                Your new password is '.$newPassword.'.<br/><br/>Thanks</h3>';
    $this->load->library('email', $config);
    $this->email->set_newline("\r\n");
    $this->email->from('info@virtualguestservices.com');
    $this->email->to($emailAddress);
    $this->email->subject('Request for New Paswword.');
    $this->email->message($message);
    if($this->email->send())
    {
        $message = [ 
            'status' => 1,
            'message' => "New password has been sent to your email address.",
        ];
      $this->set_response($message,REST_Controller::HTTP_OK);
    }
    else
    {
        $message = [ 
            'status' => 0,
            'message' => show_error($this->email>print_debugger()),
        ];
        $this->set_response($message,REST_Controller::HTTP_OK);
    }

简而言之,问题是邮件会转到像gmail,yahoo这样的域名,但邮件不会转到像icloud这样的域名,等等。

1 个答案:

答案 0 :(得分:0)

检查你的标题,你可能会遗漏一些东西。其他域可能会严格检查。

相关问题