By default the contact form sends email “From:” using the email provided by the user.
This is not a good practice according to DMARC policy. Your From should always match your sending domain
Emails easily gets stuck in spam folder otherwise.
How can I change the “From:” address to always be something specific like (Email address hidden if logged out) ?
Hey belinger,
Add the following to functions.php:
add_filter('avf_form_from', 'avf_form_from_mod', 10, 3);
function avf_form_from_mod($from, $new_post, $form_params) {
$from = " (Email address hidden if logged out) ";
return $from;
}
Best regards,
Jordan Shannon