2011年7月20日

wordpress MU用gmail發註冊認證信

1.修改var/www/wordpress/wp-includes/pluggable.php
  將$phpmailer->IsMail(); 改為 $phpmailer->IsSMTP();

2.修改var/www/wordpress/wp-includes/class-phpmailer.php

 /**
   * Sets the SMTP hosts.  All hosts must be separated by a
   * semicolon.  You can also specify a different port
   * for each host by using this format: [hostname:port]
   * (e.g. "smtp1.example.com:25;smtp2.example.com").
   * Hosts will be tried in order.
   * @var string
   */
  public $Host          = 'smtp.gmail.com';
  public $Port          = 465;
  public $SMTPSecure    = 'ssl';
  public $SMTPAuth      = true;

  public $Username      = 'yourname@gmail.com';
  public $Password      = 'yourpasswd';

沒有留言:

張貼留言