setup phplist to send email

PHPLIST SMTP W/ SSL

Update (Nov 20, 2012): This still works for 2.10.19!

Update (Nov 7, 2011): I just upgraded to 2.10.17 and can confirm this still works.

When I updated phplist to 2.10.14 I forgot that there were a few modifications required for using SMTP with SSL. This may be the reason your phplist will not send mail.

Searching resulted in many forum threads which had numerous suggestions. I checked the old files and found that the following modifications, in the past, had allowed me to send mail via SMTP with SSL.

config/config.php settings:

define("PHPMAILER",1);
define("PHPMAILERHOST",'smtp.yourdomain.com');
$phpmailer_smtpuser = 'LOGIN';
$phpmailer_smtppassword = 'PASSWORD';
$phpmailer_smtpsecure = 'ssl';
$phpmailer_smtpport = 465;


Open admin/class.phplistmailer.php and locate:

$this->Password = $GLOBALS['phpmailer_smtppassword'];


Below it insert:

$this->SMTPSecure = $GLOBALS['phpmailer_smtpsecure'];
$this->Port = $GLOBALS['phpmailer_smtpport'];


Open admin/phpmailer/class.smtp.php and locate:

$this->smtp_conn = fsockopen($host,

Update

$host,

to

$host='ssl://smtp.yourdomain.com',


You should now be able to send mail!!

移除寄信时附加的 phplist logo
 
/lists/admin/sendemaillib.php
# Logo mark $text["signature"] = "\n\n--\nPowered by PHPlist, www.phplist.com --\n\n";     //文字注解

/* Logo mark
  if (!EMAILTEXTCREDITS) {
   $html["signature"] = $PoweredByImage;#'
phplist.com"> [Powered by 
';
    # oops, accidentally became spyware, never intended that, so take it out again :-)
    $html["signature"] = preg_replace('/src=".*power-phplist.png"/','src="powerphplist.png"',$html["signature"]);
  } else {
    $html["signature"] = $PoweredByText;
  }
*/

define('USE_ADMIN_DETAILS_FOR_MESSAGES',0);

<VirtualHost *:80>
        ServerAdmin root@localhost
        DocumentRoot /opt/phplist/public_html
        ServerName phplist.ex.com
        ErrorLog /opt/phplist/log-error.log
        CustomLog /opt/phplist/log-common.log common
                <Directory "/opt/phplist/public_html">
                                <Files ~ "^.(htaccess|htpasswd)$">
                                                deny from all
                                </Files>
                                                Options -Indexes
                                <FilesMatch ".(css|jpg|jpeg|png|ico|gif|css|js|swf)$">
                                                Header set Cache-Control "max-age=3600"
                                </FilesMatch>
                                AllowOverride All
                                Require all granted
                                order deny,allow
                </Directory>

</VirtualHost>


你可能感兴趣的:(phplist)