在CodeIgniter中使用Google Apps电子邮件 [英] Using Google Apps Email in CodeIgniter
问题描述
如何使用Google Apps的电子邮件服务通过CodeIgniter电子邮件类发送邮件?电子邮件类似乎更喜欢SMTP,而我正在使用客户端的Google Apps帐户。我在SMTP的Google Apps设置中找不到任何位置。有人知道这个问题的解决方案吗?
How do I use Google Apps' email services to send mail using the CodeIgniter email class? The email class seems to prefer SMTP, and I was going through the clients Google Apps account. I can't find any place within the Google Apps settings for SMTP. Does anyone know of a solution for this issue?
推荐答案
对吧,您找不到它,因为CodeIgniter使用的是邮件 PHP
Right you don't find it because CodeIgniter uses the "mail" PHP function.
出于某些原因,只有最醉酒的PHP核心开发人员才知道-此功能不支持SMTP,更糟糕的是,即使管理员无法在Unix上配置SMTP使用情况(可以在Windows上执行此操作-使PHP设计看起来更加疯狂)。
For some reasons only the most drunken PHP core developer knows about - this function do not support SMTP and worse even the admin can't configure SMTP usuage on Unix (it is possible to do this on windows - making the PHP design look even more crazy).
那里有一些可以处理SMTP电子邮件的SMTP库,只需使用他们
There are a few SMTP libraries out there that can handle SMTP Email, just use them
http://pear.php。 net / package / Mail
http://sourceforge.net/projects/phpmailer/
http://swiftmailer.org/
或Zend框架中的Email类,它们与其余部分解耦,因此易于使用CodeIgniter。
or the Email classes from the Zend Framework which are uncoupled from the rest so easy to use with CodeIgniter.
这篇关于在CodeIgniter中使用Google Apps电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!