PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to send a mail to multiple recipients.
I'm querying the database for all the recipients addresses (about 50).
But I can't figure out the PHP code to format the query results (a bunch of emails) in the right form for to add
into the
Are you trying to build a email system yourself, as an educational experience or are you just needing to send the emails? For the latter, I'd suggest using Swift.
For the former, if memory serves, only one recipient can be listed in the normal "to" argument. Others must be added through the "additional headers" argument.
feyd wrote:Are you trying to build a email system yourself, as an educational experience or are you just needing to send the emails? For the latter, I'd suggest using Swift.
For the former, if memory serves, only one recipient can be listed in the normal "to" argument. Others must be added through the "additional headers" argument.