Can not send mail by SQL mail

Posted on 2009-04-25
Last Modified: 2012-05-06
Help me
    I use SQL server 2000 on window 2003 server, I send mail with command

exec xp_startmail
exec xp_sendmail '','test message'
exec xp_stopmail

but the message is not  sent until i open ms.outlook program, another way i stand by ms.lookout and sent the message with the command above, the system return error mesage

SQL Mail session started.
Server: Msg 18025, Level 16, State 1, Line 0
xp_startmail: failed with mail error 0x8004011d
Server: Msg 18025, Level 16, State 1, Line 0
xp_sendmail: failed with mail error 0x80004005
Stopped SQL Mail session.
 what append?

thank you in advance
Question by:somchai_edp
    LVL 31

    Accepted Solution

    there is no proper parameter supplied. have a look at below link to see what parameter needed inorder to send an email and how to configure email at SQL server
    LVL 31

    Assisted Solution

    BTW, your question zone should be MS SQL Server, not SQL Server 2005 as you are concern with only SQL Server 2000 not 2005 version.
    LVL 12

    Assisted Solution

    Install outlook on your SQL 2000 box.
    Create a profile using the SQL server service account. (Go to Control pannel > Mail, complete the settings there & test them).
    Open Enterprise manager for SQL, go to "Support Services" folder, highlight "SQL mail" and you should be able to use the profile you just configured.
    With the above simple steps, SQL mail would have been configured.
    To send mail by alerts, enable SQL agent, create an operator (user SQL agent), then create alerts for your SQL jobs and pickup the created perator.
    Easy as Sunday morning :-)

    Author Comment


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    PK numbers not follow 8 43
    Help with SQL joins 9 33
    Get row count of current SQL query 8 29
    Isolation level in SQL server 3 33
    by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
    In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now