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

    #789482

    Hey L,

    Can you try the solution given in this thread: https://kriesi.at/support/topic/contact-form-messages-not-sent/#post-389784

    Best regards,
    Nikko

    #789555

    Hi 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;
    }
    #789811

    It seems that the issue is related with this line:

    $header .= 'Reply-To: ' . $enfold_custom_from_header . '\r\n';

    #789832

    Changing from Postman SMTP to SendGrid plugin just worked fine.

    #790093

    Hi L,

    Do you still need our help with this, or was the plugin change the solution that worked? :)
    Best regards,
    Sarah

    #790243

    Changing the plugin fixed this. I recommend to use Sendgrid for WP transactional mailing. Works out of the box with Enfold.

    #790246

    Hi,

    Glad to hear that! Thanks for sharing the solution :)

    Best regards,
    Nikko

    #829583

    Hello,

    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)

    #830046

    Hi,

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

    #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 New

    Does anyone know what to do about this issue? We depend on the plugin to send our email from CF7.

    #861271

    Hi,

    Unfortunately, we can`t offer support to third-party plugins like the Postman SMTP is.

    Best regards,
    John Torvik

    #1135291

    I 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.
    #1135961

    Hi betaphase,

    Thank you for bringing this up.

    Best regards,
    Victoria

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