Pau*_*ica 11 php performance smtp phpmailer persistent-connection
如何在PHPMailer中启用持久性SMTP连接?
我会发送很多电子邮件,所以通过持久连接,我可能会获得性能提升.
Mau*_*uro 18
如果您的服务器被列入黑名单,我们真的不在乎,对吧?这是如何实现你想要的.只需设定true
的SMTPKeepAlive
属性和批量发送后,隐式调用SmtpClose()
方法.
$phpMailer = New PHPMailer();
$phpMailer->isSMTP();
$phpMailer->SMTPKeepAlive = true;
for ( ... ) {
// Send your emails right away
[ ... ]
}
$phpMailer->SmtpClose();
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
16142 次 |
最近记录: |