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.
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