几个问题re:CodeIgniter电子邮件 [英] A couple problems re: CodeIgniter emailer

查看:199
本文介绍了几个问题re:CodeIgniter电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对于CodeIgniter的电子邮件系统有一些问题:

I have some problems with the email system for CodeIgniter:


  • 首先,我发送的电子邮件(注册,确认) )在Gmail和其他邮件客户端的标准垃圾邮件过滤器中被捕获。如何解决这个问题?如何像Facebook这样的公司一直保持电子邮件?

  • First, the emails I send out (registration, confirmations) are getting caught in standard spam filters in gmail and other mail clients. How do I get around this? How do companies like Facebook get their emails through consistently?

其次,邮件程序在本地工作,但一旦部署就不再运行(不发送电子邮件),但所有其他表单运行正常。任何人遇到这样的问题?

Second, the mailer is working locally but once we deploy it it no longer runs (doesn't send emails) but all the other forms run just fine. Anyone ever run into a problem like this?

感谢所有帮助!

推荐答案

我不能真正回答你的第一个问题 - 它不是CodeIgniter的具体内容。您只需确保您的电子邮件看起来不像垃圾邮件。简而言之,没有办法保证您的电子邮件不会在垃圾邮件过滤器中。

I can't really answer your first question - it's not specific to CodeIgniter. You just need to make sure your email doesn't look like spam. In short - there's no way of guaranteeing your e-mail will not end up in a spam filter.

至于第二个问题,我期望您的生产服务器需要正确配置电子邮件。您可能需要配置CodeIgniter 才能正确发送电子邮件。我建议设置SMTP服务器(或使用现有的SMTP服务器),而不是使用我认为CodeIgniter默认使用的标准PHP邮件。

As for the second question, I expect your production server needs to be configured properly for email. You probably need to configure CodeIgniter to send email properly. I would suggest setting up an SMTP server (or using an existing one) rather than using the standard PHP mail which I think CodeIgniter uses by default.

这篇关于几个问题re:CodeIgniter电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆