I have a database with 2k+ users and I want to send them their own passwords, but mass email it to them. The mass emailing can be done several ways, but the question is how to do it so each user gets his/her own unique password?
The user password is stored inside a field within a MySQL DB. And so does the email adress.
Appreciate any ideas.
NOOOOOO please don't
Seee e.g. the Password policy hall of shame:
Also: plaintextoffenders.com - "Did you just email me back my own password?!"
Sending clear-text passwords via E-Mail is considered a really, really bad practice. Passwords should be hashed; all users should be able to get through E-Mail is a link to reset it.
To answer your question though, you'd have to walk through each record, and send a custom E-Mail to each customer. That can be resource intensive, and/or bring down the machine if there's too many messages at once, so you'd have to wait in between sending each bunch. You could also use a 3rd party service like MailChimp.