I have a php - website that accesses a mysql-database with a changing number of email addresses.
My goal is to send an email from name@gmail.com to catchall@mydomain.com and catchall@mydomain.com sends the email to all currently active email addresses.
catchall@mydomain.com should not be visible, so the sender should be name@gmail.com and the recipient all currently active email addresses without the recipient getting a message that the email wasn't sent by name@gmail.com.
I tried plesk's forwarding but there the forwarding email is put as a sender. Also plesk does not interact with my mysql database.
What is the right way to do this?