July 24, 2013 at 7:03 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 25, 2013 at 2:41 pm
hey -
I'm by no means one of the gurus on this site, but whenever I've run into this it's been permissions issues. Make sure the account that SQL Agent runs under has enought rights to send mail.
I vaughly remember something about proxy accounts set up for email purposes, but I can't remember enough about it other to give you another thing to look for.
sorry if that's not much help, but one of the gurus will probably jump in before long.
July 25, 2013 at 4:24 pm
Access to your mail server may be restricted by ip address. It will accept mail from the workstation you are running BIDS on but not the server. Check with the administrator of the mail server.
July 26, 2013 at 7:21 am
Hi,
Thanks SSChaging, for your valuable inputs and suggestions.
You are right. There were some permission issue with Sql Server User Login.
So, with the help of admin team I have resolve the issue.
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