Search code examples
phpemailbulk

Better way to send bulk mail using PHP without PEAR Mail and 'mail' function


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).

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

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

Is PHPMailer the answer?

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


Solution

  • 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.

    There is an option to use a persistent SMTP connection.