Search code examples
phpemailsendmassmail

Mail() Mass Email Sending


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


Solution

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

    $to = '[email protected], [email protected], [email protected], [email protected], [email protected]';