In SQL Server, you can use the sysmail_help_principalprofile_sp
stored procedure on the msdb
database to retrieve a list of all associations between Database Mail accounts and database principals.
You can also return account info based on the principal name/ID or the profile name/ID.
Continue reading