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

    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) ?

    #978160

    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

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