zoukankan      html  css  js  c++  java
  • smtp模块+Gmail搭建邮件发送功能

    声明:以下步骤在drupal7下测试通过(将gmail换为有smtp 服务器的sina邮箱可以发送邮件)
    1.下载smtp模块:
     
    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页面发送测试邮件即可。如果测试邮件没有收到看看垃圾邮箱有没有。
  • 相关阅读:
    背水一战 Windows 10 (90)
    背水一战 Windows 10 (89)
    背水一战 Windows 10 (88)
    背水一战 Windows 10 (87)
    背水一战 Windows 10 (86)
    背水一战 Windows 10 (85)
    背水一战 Windows 10 (84)
    背水一战 Windows 10 (83)
    背水一战 Windows 10 (82)
    背水一战 Windows 10 (81)
  • 原文地址:https://www.cnblogs.com/zhangxiujun/p/4012199.html
Copyright © 2011-2022 走看看