Thanks I was not really aware of the threading issue with contact forms, of course, you can turn that off in gmail.
But I can see, if the reply-to is the same it will thread.
I did some quick Google research and thee seems to be various solutions.
X-Entity-Ref-ID: null
looks more promising than random strings and hard coding gmail
https://stackoverflow.com/questions/23434110/force-emails-not-to-be-grouped-into-conversations
If you are interested in helping test solutions I can quickly add a filter before calling wp_mail so you can try different headers?
I’ve tested with X-Entity-Ref-ID: null
and it didn’t work for me: messages still were threaded. Will test again.
OK, seems X-Entity-Ref-ID works. Thanks!
Just to be compliant (no empty/null headers), I used X-Entity-Ref-ID: " . uniqid() . "\r\n
Normally threading is a boon, but is a nightmare in case of form responses – all the different people appear to be writing in the same thread where the form doesn’t include/require a subject field. This solves the problem.
Thanks – I assume you dropped that in the code.
I’ll incorporate that in the next version.
If you want to do a pull request -> https://github.com/alanef/clean-and-simple-contact-form-by-meg-nicholas
Do you think there is any reason to make it an option i.e. turn on / off?
( I’ll definitely add a filter for the header anyway )
Your pull released in 4.8.0 thanks