Results 1 to 4 of 4

Thread: xp_sendmail at SQL Server 2000

  1. #1
    Join Date
    Sep 2002
    Location
    Indonesia
    Posts
    1

    xp_sendmail at SQL Server 2000

    Hi,

    I have database at Microsoft SQL Server 2000, and I successed to set SQL MAIL profile.

    But when I run this query :

    EXEC xp_sendmail 'susan',
    @subject = 'Test'

    Then this result appeared :

    Server: Msg 18025, Level 16, State 1, Line 0
    xp_sendmail: failed with mail error 0x80040111

    I don't know why this result can't run success. I hope somebody want to tell me how to solve this problem.

    Thanks

  2. #2
    Join Date
    Sep 2002
    Posts
    1
    Hi Susan.

    Try fully qualifying the procedure name as in 'master.dbo.xp_sendmail', also, be sure the account executing the sendmail has been granted permission to execute extended stored procedures. Hope this helps.

    bnt

  3. #3
    Join Date
    Sep 2002
    Location
    Beaverton, OR
    Posts
    1
    Hi Susan,

    It sounds like the MSSQL Service is running under the local account, rather than a domain account.

  4. #4
    Join Date
    Sep 2002
    Location
    Kentucky
    Posts
    1

    SQL Mail

    Hi,
    There are so many things to do in order to get SQL Mail running -
    At this point, ensure that you can open your mail client and send mail when logged onto the server desktop with the Domain ID that SQL Server is running under.
    This should be the same ID that you used to create the mail profile.

    BTW, you shouldn't mix positional parameters with named parameters when you call stored procedures.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •