Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1147319

    Hi

    Recently I am receiving emails from potential customers that DO NOT have their email address in the ‘from’ field. I am using the built-in Enfold contact form

    https://www.swarez.co.uk/contact-me/

    So how come I get the ‘from’ field populated with (Email address hidden if logged out) ‘ instead of the customer’s email address? It’s not often but it is a potential for lost business as I can’t then contact them back.

    My webhost (SiteGround) say everything is fine at server level.

    I contacted one person (who left their phone number) and they said they entered their email address properly so something is stripping out that information and replacing it with the ‘no-reply’

    UPDATE: I tested with my own Gmail address and it returns the ‘no-reply’… never used to be like this. Can you look into the theme changes please so we can see if something is causing the problem?

    Any ideas?
    Thanks in advance
    Ed

    PS – I have already added this code to my child theme functions.php:

    add_filter( 'avf_form_mail_header', 'enfold_contact_form_add_replyto', 10, 3 );
    function enfold_contact_form_add_replyto( $header, $p1, $p2 ) {
            global $enfold_visitor_from;
            $header .= 'Reply-To: ' . $enfold_visitor_from . "\r\n";
            return $header;
    }
    • This topic was modified 4 years, 9 months ago by Swarez.
    #1147502

    Hey Swarez,

    Sorry for the problem. First off, could you try updating the theme to the latest version (4.6.3.1) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. If not then please post admin login details in private so that we can have a closer look.

    Best regards,
    Rikard

    #1147557

    Hi Rikard

    All updates done, caches cleared and asked for a couple of test emails from Facebook friends – still the same problem….

    Screengrab

    Thanks
    Ed

    #1148478

    Hi,

    Thank you for the update.

    Did you use the “avf_form_from” filter in conjunction with the filter you posted above?

    // https://kriesi.at/support/topic/change-from-in-the-contact-form/#post-1055920

    You can replace the filter with the following code if you want to use the value of the email field as the Reply-to address.

    add_filter( 'avf_form_mail_header', 'avf_form_mail_header_mod', 10, 3 );
    function avf_form_mail_header_mod( $header, $post, $params ) {
    	$header .= 'Reply-To: ' .  $post['2_1'] . '\r\n';
    	return $header;
    }

    Best regards,
    Ismael

    #1148479

    Hi Ismael

    Thank you for the update – no, I haven’t’ used any filters as you mention.
    Not sure how I even do that to be honest!
    Shall I just cut and paste your code in place of the code i posted?
    Many thanks
    Ed

    #1149115

    Hi,

    Yes, you can use the snippet above to replace the previous one, or the filter you posted above. Let us know how it goes.

    Thank you for the update.

    Best regards,
    Ismael

    #1149480

    Thanks Ismael – I will paste the new code and test!
    Thank you
    Ed

    #1149562

    Hi Ed,

    Thanks for the update, we’ll keep this thread open for you in case you should need any further help on the topic.

    Best regards,
    Rikard

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