July 24, 2013 at 6:50 am
Hi,
I have a SSIS Package with a Send Mail Task in it. This works perfectly within BIDS...I can get the desired email. However when I put this SSIS package in a SQL Agent Job, the Send Mail Tasks does not work.
I am getting the below error :
An error occurred with the following error message: "Failure sending mail. System.Net.WebException: Unable to connect to the remote server System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 10.38.58.184:25"
What needs to be done to get my Send Mail Tasks to send the desired emails while executing as a SQL Agent Job?
Any and All help will be greatly appreciated...Thanks
July 24, 2013 at 9:12 am
If you set up a proxy with the appropriate mail server access and ran the SSIS package under the security context of the proxy that should work. You should be able to find a number of articles on setting up a Proxy for the SQL Agent to use when running SSIS packages.
July 24, 2013 at 9:19 am
Are you running the package in BIDS on the same machine that you are trying to run it on as a job.
I have seen local firewall differences as well as access control rules on the destination side that could yield this.
CEWII
July 26, 2013 at 7:14 am
Hi,
Thank U Daniel and Elliott for your valuable input and suggestions.
This issue got reseloved. There were some permission issue with the Sql Server User Login.
So, after gievn permission by admin team this issue got resolved.
Regards,
Pinku Raj
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply