-
AuthorPosts
-
May 23, 2018 at 9:37 am #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,
May 23, 2018 at 10:11 pm #961260Hey blancocapell,
You can modify our form with Filters
https://github.com/KriesiMedia/enfold-library/tree/master/actions%20and%20filters/ALB%20Elements/Contact%20Formlet us know if you would need more help!
Best regards,
BasilisMay 24, 2018 at 8:31 am #961373Hi 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.May 25, 2018 at 1:44 pm #962105Hi 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,
VictoriaMay 27, 2018 at 8:50 am #962660There you go. If you are going to change something, please let me know beforehand.
Thank you,
May 29, 2018 at 2:43 pm #963723Hi,
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,
IsmaelMay 29, 2018 at 2:44 pm #963724Hi,
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,
IsmaelMay 31, 2018 at 10:11 am #964705Hey 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,
June 6, 2018 at 4:56 am #967614Hi,
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,
IsmaelJune 7, 2018 at 5:42 pm #969710It 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,
June 10, 2018 at 11:24 am #970728Hi 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,
VictoriaJune 13, 2018 at 9:49 am #972154Hi 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,
June 14, 2018 at 4:21 am #972592 -
AuthorPosts
- The topic ‘Contact form without reply-to’ is closed to new replies.