• Resolved jaripp

    (@jaripp)


    Would it be possible to add an option or provide a hook for defining the sending email address for notifications?

    For example if wp_mail() is configured to use Sendgrid (allowed sending domain is @customer.com) and WP admin email has different domain, mails won’t get sent.

    I think I can propably hack it with add_filter(‘wp_mail’) hook for now, but it would be nice to have a better solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Javier Casares

    (@javiercasares)

    Hello!

    I will check on that… technically it should use the wp_mail() data… but I’ll try to add this a a functionallity.

    Thread Starter jaripp

    (@jaripp)

    Yes, it uses the wp_mail() but now it forces sending address to be the WP admin email address, which in my case is not permitted sender when using Sendgrid or other SMTP API.

    $admin_email = get_bloginfo( 'admin_email' );
    $email_headers[] = 'From: WPVulnerability <' . $admin_email . '>';

    Plugin Author Javier Casares

    (@javiercasares)

    I’m adding an option for this… probably it will be in the next release.

    Plugin Author Javier Casares

    (@javiercasares)

    Since WPVulnerability 3.2.2 there is this option that should resolve this issue.

    It uses this constant in the WP-Config file:

    define( 'WPVULNERABILITY_MAIL', '[email protected]' );

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