sp_send_dbmail works if tsql job agent calls tsql, but does not work if assembly called

real simple.  sa is owner in both cases
i have tsql job agent calling sproc directly with sp_send_dbmail, works beatifully.
i have tsql job agent calling c# assembly which calls sproc with sp_send_dbmail, now sp_send_dbmail not working.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

kblauConnect With a Mentor Author Commented:
think i figured out the problem in theory, no have time to test.  need DatabaseMailUser role for user that calls into sproc (connection string)
lcohanDatabase AnalystCommented:
"calling c# assembly which calls sproc " - what SQL login IS calling the SP in this case?
kblauAuthor Commented:
did own research
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.