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’);

Solved I’m using PHPMailer6. Found out by running in command prompt: sudo find / -name “PHPMailer.php” 2>/dev/null

SOLVED