Tagged: CONTACT FORM
-
AuthorPosts
-
June 4, 2016 at 12:52 am #642764
Hello.
I would like the email generated by the contact form built into the Enfold theme to arrive “from” the customer who’s email address was entered into the email field on the contact form.
Here is a copy of the email I received after testing the contact form:
From: WordPress Sent: Wednesday, June 01, 2016 12:39 PM To: (Email address hidden if logged out) Subject: New Message (sent by contact form at The Stor-House Self Storage) First Name: Interested Last Name:: Customer E-Mail: (Email address hidden if logged out) Phone: xxx-xxx-8250 Which best describes your needs?: General Inquiry How can we help?: This is a test of the Stor-House Broadcast System. This is only a test.
I would like to be able to select “reply” in my email client and direct my reply email to the address in the “E-Mail” form field above. Is there a simple way to do this?
June 4, 2016 at 2:53 am #642782Hey storhouse,
You should be able to get the sender name but for some reason if it’s not working try switching to contact form 7 and set it up with the following settings http://contactform7.com/faq/mail-that-comes-through-the-contact-form-shows-wordpress-as-its-sender-name/
Best regards,
VinayJune 4, 2016 at 6:07 pm #642974Thank you, @vinay, for your response. I have used a different plugin in the past, Gravity Forms, and was happy with its performance. However, I was looking to take advantage of the built-in contact form functionality in the Enfold theme. Is there nothing more that can be done?
June 4, 2016 at 6:59 pm #642983Hi!
Please try the following and let us know if that will work for you
add_filter('avf_form_from', 'avia_change_from', 10, 3); function avia_change_from($from,$new_post,$params){ $from = $new_post['e-mail_1']; return $from; }
thanks a lot
Best regards,
BasilisJune 6, 2016 at 7:07 pm #643550Great! Thank you. Where do I try this?
June 6, 2016 at 7:48 pm #643584Hey!
Sorry, I forgot to say where! Hehe :-)
Every function like that, is placed at the functions.php file!Thanks a lot
Best regards,
BasilisJune 6, 2016 at 9:59 pm #643652Thanks again. Just to clarify, should I place it in the ‘functions.php’ or the ‘functions-enfold.php’ file? Also, does it matter where in the file the code is placed?
June 7, 2016 at 8:51 am #643866 -
AuthorPosts
- You must be logged in to reply to this topic.