Can not send mail by SQL mail

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
Who is Participating?
RiteshShahConnect With a Mentor Commented:
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
RiteshShahConnect With a Mentor Commented:
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.
Chris MConnect With a Mentor Consulting - Technology ServicesCommented:
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 :-)
somchai_edpAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.