Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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?

    #642782

    Hey 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,
    Vinay

    #642974

    Thank 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?

    #642983

    Hi!

    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,
    Basilis

    #643550

    Great! Thank you. Where do I try this?

    #643584

    Hey!

    Sorry, I forgot to say where! Hehe :-)
    Every function like that, is placed at the functions.php file!

    Thanks a lot

    Best regards,
    Basilis

    #643652

    Thanks 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?

    #643866

    Hi,

    Please try it at the bottom of the functions.php file to see if it works.

    Thanks,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.