使用PHP发送批量邮件的更好的方法,没有PEAR邮件和“邮件”功能

问题描述:

您使用什么脚本,类或函数发送许多电子邮件,不包括内置的邮件功能并排除PEAR Mail(PHP 5.3中的许多问题和兼容性问题)。

What script, class or function you use to send many emails, excluding the in-built 'mail' function and excluding the PEAR Mail (many problems and compatibility issues in PHP 5.3).

我想每个拍摄发送约5000封电子邮件,但是邮件功能可以连接和断开每封电子邮件。 PEAR邮件有很多问题。

I want to send about 5000 emails per 'shot', but 'mail' function connect and disconnect for each email. PEAR Mail have many problems.

我尝试过Swiftmailer,但HTML在许多客户端中显示为重复(因为显然是附加的)。

I've tried Swiftmailer, but the HTML appears duplicated in many clients (because apparently it is attached).

是PHPMailer的答案吗?

Is PHPMailer the answer?

PS:对不起,输入错误。我是巴西人。

PS: Sorry for the typos. I'm Brazilian.

在实现我们自己的系统之前,我们使用PHPMailer和isSMTP()选项,电子邮件/秒(建立时间+发送)。如果您有静态内容,您的吞吐量应该会更高一些。

Before implementing our own system we used PHPMailer with the isSMTP() option and saw throughput of about 20 emails / sec (build time + send). If you have static content your throughput should be a bit higher.

可以使用永久SMTP连接的选项。

There is an option to use a persistent SMTP connection.