• Resolved Cliff Seal

    (@cliffseal)


    Hi!

    Up until recently, you could input a custom email address to receive notifications. This was really valuable because I could use the + icon to generate filterable emails by domain. I do not want to have to associate these emails with users.

    Can you please add this back?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Some emails (minority) still allow input of custom email address(es).

    It’s not clear from your topic description which email you are referring to.

    Anyway according to the Pro 5.5.5 Changelog:

    Enhancement: Add filter to the recipients list for email notifications: “itsec_notification_{$notification}_email_recipients” and “itsec_notification_email_recipients”.

    These filters will probably provide the flexibility you require.
    However the enhancement has not yet been implemented in the free plugin, but there is a good chance it will be in the next release ??

    nlpro

    (@nlpro)

    The Pro 5.5.5 enhancement was implemented in the free plugin 7.3.0 release.

    If not already update to the latest release (7.3.1) and start using the recipients list filter(s).

    Thread Starter Cliff Seal

    (@cliffseal)

    Thanks! I couldn’t find any documentation on it, but looking through the code, this is how I’m overriding it:

    add_filter( 'itsec_notification_email_recipients', 'namespace_override_itsec_notifications', 10, 2 );
    
    function namespace_override_itsec_notifications( $recipients, $notification ) {
    
    	$overridden_recipients = array(
    		'[email protected]'
    	);
    
    	return $overridden_recipients;
    
    }

    Let me know if this is incorrect.

    When using the filter to override, it may be advisable to use a high(er) priority.
    This way when others hook into the same filter your callback is more likely to be executed last.

    Thread Starter Cliff Seal

    (@cliffseal)

    @nlpro Thanks! It worked for me at the default priority. Really appreciate this getting added in.

    @cliffseal , @nlpro

    Thanks for your help!

    Can we use the above php snippet to override (within itsecpro) the default email sent from “WordPress < [email protected] > to an existing email address, say, “WordPress < [email protected] > ?

    Also, it is assumed that “[email protected]” must be replaced with the desired return email address, correct? (e.g., [email protected])

    Last, how can we modify the above snippet if we want to change the sender’s email NAME from “WordPress” to a custom name so that we get emails sent from “Security < [email protected] > ?

    Cheers!

    No, no and the code snippet won’t help you achieve what you want.

    The filters mentioned are for (custom) recipients.

    Hi @nlpro ,

    Mmm… so what can you recommend? Need to make sure the snippet (code) doesn’t affect gravity forms (or any other forms plugin). The snippet needs to direct the commands for the iThemes plugin only (as you already know).

    Cheers!

    Thread Starter Cliff Seal

    (@cliffseal)

    @jetxpert I’d recommend using a third-party email service (I personally use SendGrid). This will allow you to selectively filter data on the outgoing email, whereas this discussion is about setting a default recipient for all alerts.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add Back Custom Notification Email Address’ is closed to new replies.