Confustion on 'phpList now only uses phpMailer for sending'

Message sending options

  • phpList now only uses phpMailer for sending, but below you can
  • tweak a few options on how that is done

=========================================================================

I’m running phplist on an alma linux machine and I am totally confused on what the following phplist commands are trying to explain to me. Can someone dumb this section down for me and explain how I can determine if I’m using PHPMailer 5 or 6 or even if I’m using PHPMailer at all?

// If you are using PHPMailer 5 then you can use a different version to the phplist distribution by specifying
// the location of the PHPMailer autoload file
// if not set, the PHPMailer version included in the distribution will be used
// eg for Debian based systems, it may be something like the example below
// when you do this, you may need to run some tests, to see if the phpMailer version you have works ok
//define (‘PHPMAILER_PATH’, ‘/usr/share/php/libphp-phpmailer/PHPMailerAutoload.php’);

// If you are using PHPMailer 6 then you can use a different version by setting the location of the PHPMailer
// src directory, e.g.
//define (‘PHPMAILER_PATH’, ‘/var/www/PHPMailer-master/src’);
// To use a SMTP server please give your server hostname here, leave it blank to use the standard
// PHP mail() command.
// define(‘PHPMAILERHOST’, ‘’);
define(‘PHPMAILERHOST’,‘xxxxx.xxxxxx.com’);

Ok, I think I get - phplist can use either phpmailer or smtp - is that correct? it’s my understanding that both cannot be used because they both do the same thing albeit differently and with smtp considered the better choice.

So. . . I can or cannot ignore the settings for phplist if I’m using smtp? If I’ve got that wrong can someone please clarify or if I’ve got that right.

Or someone set me straight please.

Thanks.

This topic has been SOLVED