• Resolved Matthias Pabst

    (@matthiaspabst)


    Hi!

    I’m using WP Mail SMTP to set a “from email” like [email protected].

    All NinjaFirewall notifications respect this setting and messages are sent by wordpress@ except the file guard notifications. These are always sent from postmaster@. Why?

    I’m experiencing this behavior on multiple websites on different servers.

    Best regards
    Matthias

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nintechnet

    (@nintechnet)

    The reason is because File Guard’s emails are sent by the firewall before WordPress loads, it isn’t possible to use the wp_mail() function.
    You can change the “from” by using the mail.force_extra_parameters directive in your .user.ini file:
    mail.force_extra_parameters = [email protected]

    Note the -f parameter prepend to the email address, which stands for “force”.

    Alternatively, if you have many sites on the server, you can make the change to the server’s main php.ini configuration so that it will apply to all sites.

    Thread Starter Matthias Pabst

    (@matthiaspabst)

    @nintechnet Thanks for the explanation and the workaround. Unfortunately, it doesn’t work with .user.ini and php.ini. But maybe my webhoster doesn’t allow to change this parameter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong from email for file guard notifications’ is closed to new replies.