Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #245116

    Hello,

    In layout builder – contact form, the sender is an variable that the email address guest filled in, may I set a fixed email as a sender for all email notification to avoid receiving these emails in junk folder? Thanks.

    #247435

    Hey!

    Yes – insert this code into the child theme functions.php file (or enfold/functions.php):

    
    add_filter('avf_form_from', 'avia_change_from', 10, 3);
    function avia_change_from($from,$new_post,$params){
    $from = ' (Email address hidden if logged out) ';
    return $from;
    }
    

    and replace (Email address hidden if logged out) with your custom sender email address.

    Best regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to set a fixed sender for contact form in layout builder?’ is closed to new replies.