【问题标题】:Sendgrid on PHPLISTPHPLIST 上的 Sendgrid
【发布时间】:2016-04-27 10:51:11
【问题描述】:

我一直在尝试将 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';

我都试过了,但都不起作用。有人可以指出我需要更改代码的确切位置吗?

谢谢,

【问题讨论】:

  • 不熟悉 php 列表,但 465 端口是用于 SendGrid 中的 SSL 邮件
  • 如果你不使用 SSL,它是
  • 是的。 tsl 不是 ssl,对吧?我不确定。
  • 您看到了什么错误信息或结果? “不工作”是什么意思?

标签: sendgrid phplist


【解决方案1】:

您的配置中有TSL,而不是TLS

【讨论】:

    猜你喜欢
    • 2011-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多