Tagged: mail
-
AuthorPosts
-
September 7, 2020 at 12:54 pm #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?
September 9, 2020 at 6:54 am #1244560Hey 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,
IsmaelSeptember 23, 2020 at 8:45 am #1247790When 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
September 24, 2020 at 2:01 pm #1248148Hi,
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,
IsmaelSeptember 26, 2020 at 8:01 am #1248569I will try, thank you for your help.
-
AuthorPosts
- You must be logged in to reply to this topic.