I have created a SSIS package which contains a send mail task. The package works fine when I run the package in visual studio. But when I try to run the package in Sql server job under sql server agent account it fails.
I have tried to change the sql server account from local service to the domain user but I got the error Access denied
. How do I achieve this? I need to send an email containing attachments based on certain constraints on data flows.