SMTP module + Gmail build mail sending Function

Source: Internet
Author: User
声明:以下步骤在drupal7下测试通过(将gmail换为有smtp 服务器的sina邮箱可以发送邮件)1.下载smtp模块:  http://drupal.org/project/smtp(link is external) 2.解压模块,并在drupal下安装smtp模块。  3.配置stmp服务器:admin/config/system/smtp页面下配置  Turn this module on or off: On  SMTP server: SMTP服务器地址(google为:smtp.gmail.com)  SMTP backup server: 同上  SMTP port: 端口(一般是25,Gmail是465)  Use encrypted protocol: 是否使用SSL (如果使用ssl:php.ini的openssl扩展要打开,并重启apache)  Username: 用户名  Password: 密码  E-mail from address: 发送邮件标记从哪个邮件发送  E-mail from name: 发送邮件标记的名字  全部设置好之后,点击“Save configuration”按钮保存即可。4.设置/admin/config/system/site-information页面下的  E-mail address项:设置与第3步的E-mail from address相同 5.如果使用google邮箱配置smtp服务器:要把pop打开,步骤为:  (1)进入google邮箱  (2)进入设置项:转发和 POP/IMAP   (3)选择:POP 下载->针对所有邮件启用 POP(包括已经下载的邮件)->保存6.进入 admin/config/system/smtp页面发送测试邮件即可。如果测试邮件没有收到看看垃圾邮箱有没有。

smtp模块+Gmail搭建邮件发送功能

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.