by rodrer » 11:33pm, Sat 27 Jun, 2009
Hi,
I created a structure using the "/admin/class.phplistmailer.php" and "/config/config.php" files.
It new structure do not send to Multiple SMTP Servers Simultaneously but it sent to various SMTP Servers sequentially, one server each time that one email is prepared to get sent.
With those new modifications you can choose how many SMTP Servers you will use to sent out emails with PHPList.
Se bellow my new "/config/config.php", I think that you will understand what are the modifications that I do on those files. The code is commented.
Will it solve your problems? If yes, please let me know.
Thank you,
Rodrigo
# If you want to use the PHPMailer class from phpmailer.sourceforge.net, set the following
# to 1. If you tend to send out html emails, it is recommended to do so.
define("PHPMAILER",1);
# To use a SMTP please give your server hostname here, leave it blank to use the standard
# PHP mail() command.
define("PHPMAILERHOST",'domain.com');
# if you want to use smtp authentication when sending the email uncomment the following
# two lines and set the username and password to be the correct ones
$phpmailer_smtpuser = 'login';
$phpmailer_smtppassword = 'password';
# To use MULTIPLE_SMTP_SERVERS set the number of servers here.
# It just will work if PHPMAILERHOST is set and if you set the $phpmailer_smtphost_N and $phpmailer_smtpuser and $phpmailer_smtppassword
# If you don't want to use it, leave it blank to use just one SMTP server or PHP mail() command.
define("MULTI_SMTP_SERVERS",'3');
# to avoid overloading the MULTIPLE servers that sends your email, you can add a little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the multi_autothrottle below)
# remember multi_autothrottle will be used after pass into all the multi server structure
define("MULTI_SMTP_SERVERS_MAILQUEUE_THROTTLE",'1');
#
# WARNING: Don't forget to create the $phpmailer_smtphost_N configurations, with HOSTNAME/IP, LOGIN and PASSWORD as bellow for each SMTP SERVER.
# If MULTI_SMTP_SERVERS is set to 3 as: define("MULTI_SMTP_SERVERS",'3'); follow the example. You can add as many SMTP servers you want using
# this feature.
#
$phpmailer_smtphost_1 = 'domain.com';
$phpmailer_smtpuser_1 = 'login';
$phpmailer_smtppassword_1 = 'password';
#
$phpmailer_smtphost_2 = 'IP.IP.IP.IP';
$phpmailer_smtpuser_2 = 'login';
$phpmailer_smtppassword_2 = 'password';
#
$phpmailer_smtphost_3 = 'smtp.domain.com';
$phpmailer_smtpuser_3 = 'login';
$phpmailer_smtppassword_3 = 'password';