在Drupal当中如何配置才能够在创建新账户,联系网站的时候,发送确认邮件和邮件通知。
1.只需要安装SMTP Authentication Module 和 PHPmailer
主要参考下面的文章:
http://shutterfreak.net/blogs/olivier-biot/2010-06-24/configuring-smtp-server-sending-mail-drupal
phpmailer的下载地址:
https://code.google.com/a/apache-extras.org/p/phpmailer/
Installation is a 5 step procedure:
- Download and unpack the the SMTP Authentication Support module: it will unpack in an "smtp" directory.
- Download and unpack the PHP Mailer module that corresponds to your needs (I downloaded the PHP 5/6 version).
- Rename the PHP Mailer directory (mine was "PHPMailer_v5.1") to "phpmailer" and drop it into the "smtp" directory (see step 1).
- Upload the "smtp" directory to your host's "sites/all/modules" directory.
- Enable the SMTP Authentication Support module (browse as Drupal admin to admin/build/modules)
2.SMTP的相关配置:可以参看如下的YouTube视频。
http://www.youtube.com/watch?v=ZR-gLPi95sI
smtp server:
smtp.gmail.com
smtp port:
465
Use encrypted protocol:
use ssl
此外还需要在账户信息当中设置:管理员验证