抱歉,还有另一个godaddy/codeigniter
电子邮件问题。抱歉,如果这里有类似的回答帖子,但我找不到一个适合我的帖子。
我已将我的(工作)网站从本地移至GoDaddy
,在尝试各种设置后,我在电子邮件配置中有以下内容
$config['useragent'] = "CodeIgniter";
$config['mailpath'] = "/usr/sbin/sendmail"; // or "/usr/sbin/sendmail"
$config['protocol'] = "sendmail";
$config['smtp_host'] = "relay-hosting.secureserver.net";
$config['smtp_port'] = "25";
$config['smtp_user'] = 'myemail@mygodaddydomain.com';
$config['smtp_pass'] = 'mypassword';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['wordwrap'] = TRUE;
$config['crlf'] = "\r\n";
与此处的绝大多数类似帖子不同,我的电子邮件似乎正在发送,因为如果我使用
echo $this->email->print_debugger();
我得到以下内容:
Your message has been successfully sent using the following protocol: sendmail
User-Agent: CodeIgniter
Date: Wed, 12 Feb 2014 14:02:34 -0700
From: "me" <>
Return-Path: <>
To: email@gmail.com
Subject: =?utf-8?Q?Please_reset_your_password_at_CellKulture?=
Reply-To: "" <>
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <52fbe16a8c43a>
Mime-Version: 1.0
但是电子邮件永远不会到达我的地址。我曾尝试向gmail和其他地址发送电子邮件。你能帮忙吗?
答案 0 :(得分:3)
经过两天漫长的日子,我使用以下配置解决了这个问题:
$config['protocol'] = 'sendmail';
$config['smtp_host'] = 'localhost';
$config['smtp_user'] = '';
$config['smtp_pass'] = '';
$config['smtp_port'] = 25;
$this->load->library('email', $config);
我在Godaddy服务器中使用CodeIgniter。
该消息在1-2分钟内发送。
答案 1 :(得分:0)
我最后通过使用sendgrid和绕过godaddy来解决这个问题