phpcomposer-phppearbulk-emailmail-queue

PHP Mail_Queue without PEAR


I want to send bulk emails and I've found (Is there a limit when using php mail function?) the recommended way is to use PEAR Mail_Queue.
But that question is too old, and I've also read PEAR is almost deprecated and replaced by Composer now.
Is there any alternative to Mail_Queue in Composer? or some other method to send bulk emails with PHP?
* Also is welcome if you can reply as a bonus if Mail_Queue is a PECL extension or a Library, or how to identify that in general.


Solution

  • Actually you can install both PEAR::Mail and PEAR::Mail_Queue with composer:

    composer require pear/mail
    composer require pear/mail_queue
    

    Edit:

    Packagist says that Mail_Queue is abandoned, so, I recommend using Swift Mailer as an alternative.

    Check Sending Emails in Batch to achieve what you want.