Skip to main content
1 of 2
Naveen
  • 1.9k
  • 3
  • 35
  • 66

How to check where 'SPEmailEventReceiver' is attached?

I created a simple event receiver of SPEmailEventReceiver. But while creating it, Visual Studio did not ask me on which list/library it needs to be attached. In PowerShell I know that I can get event receivers like this.

$site = Get-SPSite -Identity "SITE"
$web = $site.RootWeb
$list = $web.Lists["LIST/LIBRARY"]
$list.EventReceivers | Select assembly, name, type

But how can I check where the SPEmailEventReceiver event receiver is attached?

Naveen
  • 1.9k
  • 3
  • 35
  • 66