FIXED! xp_sendmail works from QA but not from DTS package

From: Colleen Rossman (crossman_at_discussions.microsoft.com)
Date: 11/22/04


Date: Mon, 22 Nov 2004 10:43:02 -0800

I have finally figured out how to get this to work in DTS. I needed to
specify the '@recepient=','@subject=' and @message=' variable names. In
Query Analyzer I didn't need them. I could just issue xp-cmdshell
'myemail.com','test message'

"Colleen Rossman" wrote:

> Yes, we're using the same accounts for both services. However, yesterday it
> worked. This isn't the first time this has happened.
>
> Colleen
>
> "Steen Persson" wrote:
>
> > Do you use the same account for running both your SQLServer service and your
> > SQLAgent service? If not, then try to set SQLserver to use the same account
> > as SQLAgent - the one that has the mailbox set up.
> > I have had similar issues where it was solved by having the SQLserver
> > running on the same account as SQLagent rather than the local system.
> >
> > Regards
> > Steen
> >
> > Colleen Rossman wrote:
> > > The 'error' message is 'successfully executed step' but I never get
> > > the e-mail. Yes, we setup a MAPI profile for SQLAgent Account and it
> > > successfully stops and starts a mail session using that account. It
> > > works on all our other servers. I've had this problem at other
> > > companies too, and have never figured it out.
> > >
> > >
> > > "Rick Sawtell" wrote:
> > >
> > >> What error message are you getting back?
> > >>
> > >> Did you create an email profile for whatever account the DTS package
> > >> is running under?
> > >>
> > >> Rick Sawtell
> > >> MCT, MCSD, MCDBA
> > >>
> > >>
> > >>
> > >> "Colleen Rossman" <crossman@discussions.microsoft.com> wrote in
> > >> message news:646B361E-002D-4958-A5C2-16FCC3ACDD78@microsoft.com...
> > >>> I copy and paste from QA to DTS so I know it's not a typo. I ran
> > >>> xp_stopmail and xp_startmail and still no l luck. We bounced the
> > >>> SQL Agent too but it's still not working. SQL mail is working
> > >>> though.
> > >>>
> > >>> Please help!
> >
> >
> >



Relevant Pages

  • RE: SQL Agent wont start
    ... Both SQLServer and SQLAgent are now run under the Local System ... Windows Admin account which was used to start these services. ... Interestingly, when a sysadmin account ...
    (microsoft.public.sqlserver.server)
  • Re: Intranet connect to SQLServer Under users account.
    ... >> I have set up the Web site so that it uses Windows Integrated security, ... >> On a test webpage I can output the user account being used: ... >> SQLServer using their account. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: SBS 2003 server/SQLServer 2000 SP3a service fails to load locally
    ... Resetting the log doesn't change authentication. ... Does the account has a password ... The only error I get is an authentication process problem. ... > the SQLServer Enterprise application and on the service itself. ...
    (microsoft.public.sqlserver.server)
  • Re: Access to sql2005
    ... When you run the site in the debugger, it could run under your account, ... When you run it "for real" it runs under a local ASPNET ... connect to SqlServer using a specified sqlserver account. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Export and email query as a CSV
    ... Is your Sqlserver service startup account an NT account. ... > exec sp_prepare @P1 output, NULL, N'Select top 10 EmployeeCode, ...
    (microsoft.public.sqlserver.programming)