Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS Package with a Send Mail Task works perfectly within BIDS but does not work in a SQL Agent Job. Expand / Collapse
Author
Message
Posted Wednesday, July 24, 2013 7:03 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, August 16, 2013 5:29 AM
Points: 12, Visits: 119
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
Post #1477046
Posted Thursday, July 25, 2013 2:41 PM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Monday, April 7, 2014 11:41 AM
Points: 703, Visits: 4,519
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.
Post #1477747
Posted Thursday, July 25, 2013 4:24 PM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Friday, September 19, 2014 3:01 PM
Points: 653, Visits: 3,867
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.
Post #1477791
Posted Friday, July 26, 2013 7:21 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, August 16, 2013 5:29 AM
Points: 12, Visits: 119
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
Post #1477996
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse