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