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?