I'm using the default D7 contact form to have anonymous users enter some information. I've created various categories and based on the category the message should be emailed to a single or multiple email addresses. The email addresses are valid addresses comma separated as described by D7.
This has worked fine for many years but recently emails are refused by Google due to multiple addresses in the From: header. So D7 sends the content of the contact form to both email addresses but also to the email address entered but with the entire list of email addresses in the From: header.
Is there a way to have both? i.e.
- copy of the message sent to the user, with a single, preset email address
- message sent to a list of email addresses based on the category.
Preferably with the standard contact form or with a separate module.