User Tools

Site Tools


system:sending

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
system:sending [2013/09/16 20:30]
phplist
system:sending [2015/03/27 08:18] (current)
phplist
Line 1: Line 1:
 +====== Sending ======
 +
 +For your phpList system to be able to deliver emails, you need to set up a way for it to send.
 +
 +There are three different ways to send email.
 +
 +===== SMTP =====
 +
 +To send using SMTP, the minimum setting is [[system:config:PHPMAILERHOST]] which you need to set to your SMTP hostname. To use a different port than the default port 25, set [[system:config:PHPMAILERPORT]]
 +
 +You can also use SMTP-Authentication, by setting [[system:config:phpmailer_smtpuser]] and [[system:config:phpmailer_smtppassword]]
 +
 +==== Multi SMTP ====
 +
 +To use multiple SMTP servers, you can set the PHPMAILERHOST to be a semi-colon delimited list of servers. For example
 +
 +<code>
 +define('PHPMAILERHOST','smtp1.domain.com;smtp2.domain.com');
 +</code>
 +
 +and it can also contain ports, for example
 +
 +<code>
 +define('PHPMAILERHOST','smtp1.domain.com:26;smtp2.domain.com:27');
 +</code>
 +
 +==== Test vs blast ====
 +
 +To use a different SMTP server for testing or processing the queue, you can set 
 +
 +[[system:config:PHPMAILERTESTHOST]] and [[system:config:PHPMAILERTESTPORT]]
 +
 +or alternatively 
 +
 +[[system:config:PHPMAILERBLASTHOST]] and [[system:config:PHPMAILERBLASTPORT]]
 +
 +both of which have the same options as [[system:config:PHPMAILERHOST]] and will default to the value of [[system:config:PHPMAILERHOST]] if not defined.
 +
 +==== Authenticated SMTP ====
 +
 +To use a username and password for SMTP authentication set the following in your config file:
 +
 +<code>
 +$phpmailer_smtpuser = 'smtpuser';
 +$phpmailer_smtppassword = 'smtppassword';
 +</code>
 +
 +
 +===== Mail =====
 +
 +If [[system:config:PHPMAILERHOST]] is not set or empty, the default [[http://php.net/mail|PHP mail command]] will be used. Sending mail will then depend on your PHP installation.
 +
 +===== Amazon SES =====
 + 
 +To send using Amazon SES, set the following config values for
 +
 +[[system:config:AWS_ACCESSKEYID]] and [[system:config:AWS_SECRETKEY]]
 +
 +Also, make sure to set [[system:config:PHPMAILERHOST]] to be empty.
 +
  
system/sending.txt · Last modified: 2015/03/27 08:18 by phplist

Resources
Contact Us

e: info@phplist.com

Boring Bit

phpList is a registered limited company

UK Company No. 07582966

VAT Registration 122 0788 37

© phpList 2016