我构建了需要发送电子邮件(低容量)的Intranet应用程序。我将无法使用我的组织的SMTP服务器,所以我需要通过sendmail
或mail
发送这些电子邮件。使用'mail'或'sendmail'发送带有CodeIgniter的电子邮件
然而,当我配置我的电子邮件为:
$config['protocol'] = 'sendmail';
我得到:
Exit status code: 127
Unable to open a socket to Sendmail. Please check settings.
Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.
,当我使用:
$config['protocol'] = 'mail';
我得到:
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.
有什么我应该设置在PHP中或检查phpinfo()
找出如何得到这个工作?
你试过根本就没有配置什么?这大多数时候都有效。如果这不起作用,那么我猜测问题出现在$ config ['mailpath']'变量中。 – Robert 2012-07-25 15:21:37
使用'codeigniter电子邮件设置网站:stackoverflow.com'做一个谷歌搜索,看看现有的任何问题/答案是否有帮助。 – 2012-07-25 15:23:16
我一直在寻找解决方案,但目前为止没有具体的东西 - 我只需要发送电子邮件,我发现的一切都建议构建一个可以发送和接收的电子邮件服务器 – pepe 2012-07-25 15:26:11