Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1243964

    Hello, I had some problems with contact form, as the mail sent seem to be weirdly formatted. I used WP Mail SMTP plugin and it sent test mails OK, but Enfold contact form mails were defective. The sent from and reply to address were weirdly inconsistent.

    I forced sent from address and used this code in functions to force reply to address:

    add_filter('avf_form_from', 'avf_form_from_mod', 10, 3);
    function avf_form_from_mod($from, $new_post, $form_params) {
    	global $enfold_custom_from_header;
    	$enfold_custom_from_header = $from;
    	$from = " (Email address hidden if logged out) ";
    	return $from;
    }
    
    add_filter('avf_form_autoresponder_from', 'avf_form_autoresponder_from_mod', 10, 3);
    function avf_form_autoresponder_from_mod($from, $new_post, $form_params) {
    	global $enfold_custom_from_header;
    	return $enfold_custom_from_header;
    }

    However, i still can see that message ID is defective format:

    HASH@www.domain.tld

    The rely to address was also set to norely@www.domain.tld

    Is there simpler way to fix this / a way to fix this message ID?

    #1244560

    Hey MORTULGAAH,

    Thank you for the inquiry.

    What do you mean by message ID? Do you mean the sender’s email address? The sender’s email address is automatically fetch from the email field if it exists or filled.

    And the above filter is no longer required because we could manually set the from address in the contact form’s Backend > Your from address field along with other settings.

    Best regards,
    Ismael

    #1247790

    When I looked at the message source, the message id was set as HASH@www.domain.tld

    I use the code generated for the functionality in the widget, so that is why some things did not work as they should have.

    Where should I set from address so I wouldn’t need to use the code above? – Without this the form didn’t work at all.

    Thanks

    #1248148

    Hi,

    Where should I set from address so I wouldn’t need to use the code above? – Without this the form didn’t work at all.

    The from field is in the contact forms’ Content > Backend toggle. Look for the Your from address field.

    Thank you for your patience.

    Best regards,
    Ismael

    #1248569

    I will try, thank you for your help.

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