Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #991976

    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

    #992005

    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

    #992022

    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 ‘&’

    #992026

    Hi,

    Not sure why you got this error – I now added the code for you.

    Best regards,
    Dude

    #992032

    Thank you so much, that works great. Really great service.
    Buddy

    #992228

    Hi Buddy,

    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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