【发布时间】:2018-03-16 16:26:08
【问题描述】:
这是我的代码:
$config = array(
'protocol' => 'smtps',
'smtp_host' => 'ssl://smtps.googlemail.com',
'smtp_user' => 'donotreply@eezybee.com',
'smtp_pass' => '******',
'smtp_port' => '465',
'mailtype' => 'html',
'smtp_timeout' => '4',
'newline' => "\r\n"
);
$this->email->initialize($config);
$this->email->to('donotreply@eezybee.com');
$this->email->cc();//$this->input->post('cctxt')
$this->email->from('donotreply@eezybee.com');
$this->email->subject('Test subject');
$this->email->message('Test message');
$this->email->send();
echo $this->email->print_debugger();
这封电子邮件正在进入垃圾邮件箱。
【问题讨论】:
-
错误显示验证密码失败。确保您使用的是正确的登录凭据
-
你使用的是哪个主机......cpanel或windows
-
登录凭据正确。 @BSB
-
服务器是 amzon @Mahesh
-
你试过 tls 和端口 587..?
标签: php codeigniter amazon-ec2 spam email-spam