Hi!
You can use af_get_field( 'FIELD_NAME' ) inside offilter_email_headers` to get a submitted form value and use it for the Reply-To header.
Does that work?
I’m just amazed that this is not a part of the form admin, as Big guns like Hostinger and many many webhosting not allow to smtp from: another mailaccount / mailaddress that not resident on the same domain. You cant have the visitors from: populated in the headers, but as a go-around, the reply-to headers works, and answer your client is possible without “anwer yourself” in your email client.
Hej, Jonas!
That’s a very fair point and I have considered adding the field as an admin setting. Because I try to be conservative and keep the admin panel simple I’ve been holding off though, waiting to see if it’s a common request. So far it hasn’t been entirely common but that could definitely change.
I took this opportunity to add reply-to as an example in the documentation. Soon I’m also launching a new FAQ section in the documentation soon and will definitely include that there as well!