PHPLIST上的Sendgrid

时间:2016-04-27 10:51:12

标签: sendgrid phplist

我一直在尝试将sendGrid与PHPList集成。很遗憾,我无法找到任何最新的文章/文件。

我尝试更改config/config.php文件。这是代码[编辑],

define('PHPMAILERHOST', 'smtp.sendgrid.net');
$phpmailer_smtpuser = 'uname';
$phpmailer_smtppassword = 'pass';
define("PHPMAILER_SECURE",'tls');

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

我还尝试编辑setupdir/admin/phpMailer/class.phpmailer.php。以下是[改变线条]的样子,

public $Host = 'smtp.sendgrid.net';
public $Port = 587;
public $Helo = '';
public $SMTPSecure = 'tsl';
public $SMTPAutoTLS = true;
public $SMTPAuth = true;
public $Username = 'myusername';
public $Password = 'mypass';

我试过了两个但是没有用。有人能指出我需要更改代码的确切位置吗?

谢谢,

1 个答案:

答案 0 :(得分:1)

您在配置中有TSL而不是TLS

相关问题