Question

How can I send mass emails with PHP using the built-in mail() function?

I know it is not very efficient, but I need a simple way of sending mass emails.

I know how to send to a single person.

Thanks in advance

Was it helpful?

Solution

In the to/cc/bcc field you can just separate emails with a comma.

$to = 'email1@yahoo.com, email2@yahoo.com, email3@yahoo.com, email4@yahoo.com, email5@yahoo.com';
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top