使用CakePHP自带Email组件通过gmail发送邮件
2011-10-18 14:17
721 查看
$this->Email->smtpOptions = array( 'request' => array('uri' => array('scheme' => 'https')), 'port' => '465', 'host' => 'smtp.gmail.com', 'username' => '用户名', 'password' => '密码' ); $this->Email->delivery = 'smtp'; $this->Email->from = "username@gmail.com"; $this->Email->to = "someone@foobar.com"; $this->Email->subject = "subject"; $this->Email->send("content");
参考:http://hi.baidu.com/thinkinginlamp/blog/item/ded3b901c204c409738da594.html
不行的话可以使用PHPMailer或者SwiftMailer。
其他资料:
http://thobian.info/?p=335
http://www.zhaokunyao.com/archives/980
http://planetcakephp.org/aggregator/items/2037-emailing-through-google-apps-gmail-on-cakephp
http://bakery.cakephp.org/articles/sky_l3ppard/2009/11/07/updated-swiftmailer-4-xx-component-with-attachments-and-plugins
相关文章推荐
- C#使用自带的email组件发送邮件的方法
- phplist及phpmailer(组合使用)通过gmail发送邮件的配置方法
- 使用System.Web.Mail 组件通过SMTP认证发送邮件
- 使用indy 9发送邮件支持SSL选项,gmail测试通过
- 通过phpmailer使用gmail账号发送邮件了【转】
- c#中使用自带的邮件发送组件发送邮件~
- 利用asp.net自带邮件组件 发送邮件,支持126,163,gmail,qq等邮箱
- 使用C#通过GMAIL发送邮件.
- 利用asp.net自带邮件组件 发送邮件,支持126,163,gmail,qq等邮箱
- 使用Apache email组件发送邮件实例
- c#中使用自带的邮件发送组件发送邮件的函数
- 利用asp.net自带邮件组件 发送邮件,支持126,163,gmail,qq等邮箱
- cakephp中用内置邮件组件发送Gmail邮件
- 利用asp.net自带邮件组件 发送邮件,支持126,163,gmail,qq等邮箱
- python - 如何通过GMail发送邮件:smtplib的使用
- yii2使用邮箱组件发送邮件信息 Sorry, we are unable to reset password for email provided
- python - 如何通过GMail发送邮件:smtplib的使用
- Fedora git send-email 使用 msmtp 发送 Gmail 邮件
- 使用Apache email组件发送邮件实例
- python使用smtplib模块通过gmail实现邮件发送的方法