如何将 phpList 与外部(第三方)SMTP 服务器一起使用

如何将 phpList 与外部(第三方)SMTP 服务器一起使用

正如标题所述,我正在尝试在我的服务器上安装 phpList,并通过第三方服务(例如 TurboSMTP.com)中继消息。我在应用程序或任何配置文件中都找不到允许我进行此项设置的设置。

答案1

可在配置.php文件夹下的文件/列表/配置

向下滚动到邮件设置

搜索以下代码并修改您的 smtp 主机名。希望这对您有所帮助。

# 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",'');

# 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 = 'smtpuser';
#$phpmailer_smtppassword = 'smtppassword';

答案2

lists/config/config.php 并不总是包含所有微调设置。请参阅 config/config_extended.php

# in the above you can specify multiple SMTP servers like this:
# 'server1:port1;server2:port2;server3:port3' eg
#define('PHPMAILERHOST','smtp1.mydomain.com:25;smtp2.mydomain.com:2500;smtp3.phplist.com:5123');

# 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 = 'smtpuser';
#$phpmailer_smtppassword = 'smtppassword';

## you can set this to send out via a different SMTP port
# define('PHPMAILERPORT',25);

相关内容