The best way to send mass mail using PHP without PEAR Mail and "mail"

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

I want to send about 5,000 letters per "snapshot", but the "mail" function is connected and disconnected for each letter. PEAR Mail has a lot of problems.

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

PHPMailer answer?

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

0
source share
2 answers

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

It is possible to use a permanent SMTP connection.

+2
source

PHPMailer will do what you want, although if you use it as a page load, remember the timing of your page. If you go, you want you to be able to find the place where you left off. This assumes that each email is configured for each user.

Based on this experience, I stopped using the download of such PHP scripts on a web browser, and instead now run them on the command line.

+1
source

Source: https://habr.com/ru/post/1315372/


All Articles