Tagged: CONTACT FORM, reply-to
-
AuthorPosts
-
May 8, 2017 at 12:11 pm #789469
We use Sendgrid for our WordPress transactional emailing. The problem is that by default Enfold contact form does not include reply to address. We get a new contact form email and we can reply only to ourselves.
Is it possible to mofdify Enfold contact form in such way that it includes a reply-to option into delivered contact form mails?
Regards
May 8, 2017 at 12:23 pm #789482Hey L,
Can you try the solution given in this thread: https://kriesi.at/support/topic/contact-form-messages-not-sent/#post-389784
Best regards,
NikkoMay 8, 2017 at 1:32 pm #789555Hi Nikko,
The solution failed and we got a reason with a following system fault:
Invalid "Reply-To" e-mail address " (Email address hidden if logged out) From: "
It seems that the code is adding
rnFrom:
at the end of Reply-To email address. Why so? How to modify this function to eliminate this?add_filter( 'avf_form_from', 'enfold_customization_contact_form_etc', 10, 3 ); function enfold_customization_contact_form_etc( $from, $p1, $p2 ) { global $enfold_custom_from_header; $enfold_custom_from_header = $from; } add_filter( 'avf_form_mail_header', 'enfold_customization_contact_form_etc2', 10, 3 ); function enfold_customization_contact_form_etc2( $header, $p1, $p2 ) { global $enfold_custom_from_header; $header .= 'Reply-To: ' . $enfold_custom_from_header . '\r\n'; return $header; }
May 8, 2017 at 8:24 pm #789811It seems that the issue is related with this line:
$header .= 'Reply-To: ' . $enfold_custom_from_header . '\r\n';
May 8, 2017 at 8:52 pm #789832Changing from Postman SMTP to SendGrid plugin just worked fine.
May 9, 2017 at 9:23 am #790093Hi L,
Do you still need our help with this, or was the plugin change the solution that worked? :)
Best regards,
SarahMay 9, 2017 at 1:34 pm #790243Changing the plugin fixed this. I recommend to use Sendgrid for WP transactional mailing. Works out of the box with Enfold.
May 9, 2017 at 1:39 pm #790246Hi,
Glad to hear that! Thanks for sharing the solution :)
Best regards,
NikkoJuly 25, 2017 at 11:42 am #829583Hello,
we would like to modify the default Contact form of Enfold theme in the way emails contain “reply to” field in the heading. Apart from this, we use Easy WP SMTP plugin.
We tried to use the source code (above), but it does not work, probably it changed something during the time. Could you please insert the current code for adding the reply-to field to heading of emails.
There are two conditions that we would need the emails satisfy:
– use SMTP (it was the cause of this problem because sending mails from user’s address [e.g. gmail] via our server is blocked because we are not “Google server”)
– use reply-to field (we could just answer strictly to sender’s address)July 26, 2017 at 9:46 am #830046Hi,
The same code can still be used, if you want to easily modify it, I would suggest using plugins that are focused on contact forms such as Contact Form 7.
Best regards,
NikkoOctober 6, 2017 at 10:24 pm #861198****NEW CRITICAL ISSUE WIth POSTMAN SMTP???*****
I just got an alert from Wordfence that says:
The Plugin “Postman SMTP” has been removed from wordpress.org.
Plugin Name: Postman SMTP
Plugin Website: https://wordpress.org/plugins/postman-smtp/
Current Plugin Version: 1.7.2
Severity: Critical
Status NewDoes anyone know what to do about this issue? We depend on the plugin to send our email from CF7.
October 7, 2017 at 4:49 am #861271Hi,
Unfortunately, we can`t offer support to third-party plugins like the Postman SMTP is.
Best regards,
John TorvikSeptember 7, 2019 at 10:20 am #1135291I realize this is an old post but the method “L” posted (post #789555) fails because the carriage returns in message headers need to be wrapped with double quotes, not single:
Incorrect:
$header .= 'Reply-To: ' . $enfold_custom_from_header . '\r\n';
Correct:
$header .= 'Reply-To: ' . $enfold_custom_from_header . "\r\n";
This method will also fail if auto-responders are being used because Enfold has the same filter used twice in the file class-form-generator.php: avf_form_mail_header. It’s included once for the message, and once for auto-responders which means it gets called twice, overwriting the header for both (undesirable!). These sections need to have 2 distinct sets of filters.
- This reply was modified 5 years, 3 months ago by betaphase.
September 9, 2019 at 12:35 pm #1135961Hi betaphase,
Thank you for bringing this up.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.