Tagged: ,

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #960687

    Hi guys,

    So apparently, since I don’t know what version, this contact form is sending the emails without a “reply-to” field: https://www.naikare.es/contacte/
    This means that if I reply to the mail, I have to manually copy-paste the mail of the sender to the “To” field, otherwise I would send myself the reply.

    Is this a known issue?

    Thanks,

    #961260

    Hey blancocapell,

    You can modify our form with Filters
    https://github.com/KriesiMedia/enfold-library/tree/master/actions%20and%20filters/ALB%20Elements/Contact%20Form

    let us know if you would need more help!

    Best regards,
    Basilis

    #961373

    Hi Basilis,

    I don’t understand the answer. My problem is that before, the mails received from a contact form had the “reply-to” field. Now not anymore. So now, if I just hit the Reply button when receiving a mail, I’ll send it to myself because the From field is my own email and there is no Reply-to.
    It seems like a bug.

    #962105

    Hi blancocapell,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #962660

    There you go. If you are going to change something, please let me know beforehand.

    Thank you,

    #963723

    Hi,

    Thanks for the update.

    Use this filter to set the contact form’s email field content as the Reply-to value.

    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

    #963724

    Hi,

    Thanks for the update.

    Use this filter to set the contact form’s email field content as the Reply-to value.

    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

    #964705

    Hey Ismael,

    Thank you. It works “almost” perfectly. These are the headers I get (attached image). So it looks like in the reply-to header, the email address is good but the name isn’t. Can we fix that?

    Thank you,

    #967614

    Hi,

    I’m sorry. I’m not sure what the issue is. The “reply-to” header is supposed to contain the email address, not the name.

    Best regards,
    Ismael

    #969710

    It contains the email address, but the name is wrong. Your code works technically but not aesthetically, because now the reply-to header is something like this: “weird_characters” <correct_email_to_answer_to>.

    I’m not so good with PHP, can you help me correcting your code, please?

    Thank you,

    #970728

    Hi blancocapell,

    Here is the code you can put in your funtions.php

    
    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['1_1'] . ' ' . $post['2_1'] . '\r\n';
    	return $header;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #972154

    Hi Victoria,

    Sorry for the hassle. I have this plugin called Easy WP SMTP that was the one replacing the reply-to header, so once I disabled it, the issue is gone.

    Thank you for your support anyway.

    Best,

    #972592

    Hi,

    Awesome! Good thing you figured that out. Let us know if you need anything else. :)

    Best regards,
    Ismael

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Contact form without reply-to’ is closed to new replies.