A lot of email from the contact form is being sent to spam by Outlook. We have been whitlisting senders but are being overwhelmed by the different from addresses. How can we make all mail from the contact form from a primary email domain such as (Email address hidden if logged out) ?
Site is https://woodruffway.com
Hey buddy1,
Please add this code to your child theme funtions.php file to send all e-mails from (Email address hidden if logged out)
function change_cf_from() {
return " (Email address hidden if logged out) ";
}
add_filter('avf_form_from', 'change_cf_from', 10);
Best regards,
Dude
Hey, thanks for the quick answer. I get the following when I add code:
Your PHP code changes were rolled back due to an error on line 47 of file wp-content/themes/enfold-child/functions.php. Please fix and try saving again.
syntax error, unexpected ‘&’
Hi,
Not sure why you got this error – I now added the code for you.
Best regards,
Dude
Thank you so much, that works great. Really great service.
Buddy