-
AuthorPosts
-
September 20, 2018 at 4:28 am #1012126
Hi Guys!
I originally posted a similar question here: https://kriesi.at/support/topic/contact-form-from-and-reply-to/
I’m using the latest and greatest version of Enfold along with the WP Mail SMTP plugin, so the part about setting the From: address to one on my domain is not an issue.
However the second code snippet I mention no longer works to set a Reply-To: header. All it does is change the display from name from the user’s submitted address to the display name associated with the address on my domain (from the WP Mail SMTP settings presumably). It does not change the actual From: address that’s used when you click Reply in your email client.
So I need the ability to set a Reply-To: address equal to the value submitted in the appropriate field of the form. Before you say that should be a job for the plugin, let me say this. Since the plugin doesn’t necessarily know about any field names or other settings of any contact form, I believe it should be the job of the contact form (theme element or plugin) to give a WP admin or author the ability to set a Reply-To: value to a field within the form. That just makes sense to me.
So is there any other code I can put in my functions.php file to accomplish this? Or by any chance does Kriesi have any plans to add this as an additional setting to its built in Enfold contact form element??? Or would they consider it for a near future release???
Thanks!
Scott
- This topic was modified 6 years, 2 months ago by scotthco.
September 21, 2018 at 12:13 am #1012535Hey scotthco,
Here you can find all the code related to forms
https://github.com/KriesiMedia/enfold-library/tree/master/actions%20and%20filters/ALB%20Elements/Contact%20Formand how to modify them :)
Best regards,
BasilisSeptember 24, 2018 at 10:23 pm #1013875Basilis:
You guys have been most helpful with other issues I’ve posted. However I am disappointed in this reply. What good would it really do for me to take the time to study that code, find the relevant routines, make some changes, only to have it all wiped out by the next theme release???
I’ll just find a plugin to handle it. It’s just a shame that, of all the amazing components you guys built into Enfold, the contact form can’t be used efficiently in many cases. Users should be able to simply click Reply in their email programs. There’s no good reason they should have to copy the email address entered by the viewer and paste it into the Reply box.
Scott
September 25, 2018 at 12:35 am #1013938Hi,
Those changes can be added to the functions.php file of a child theme and that will not erase the code :)
You will not loose something at all, if you create a child theme and load the code form there! :)Best regards,
BasilisMay 16, 2019 at 1:42 am #1101198Basilis, I’m afraid that wasn’t his point. The current enfold contact form is pretty much useless, without proper functionality.
May 20, 2019 at 7:04 am #1102381Hi,
@scotthco: You should be able to adjust the mail header using the “avf_form_mail_header” filter. A few example can be found in the following threads.// https://kriesi.at/support/topic/change-from-in-the-contact-form/#post-1055920
// https://kriesi.at/support/topic/set-reply-to-header-from-user-entered-mailadress/#post-1081044
@ehCanada: What are the issues with the contact form in your site? Please create a new thread with the link to the site or contact page. We would to check it.Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.