[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1271
  • Last Modified:

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 'abc@viv.com','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
0
somchai_edp
Asked:
somchai_edp
  • 2
3 Solutions
 
RiteshShahCommented:
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

http://classicasp.aspfaq.com/email/how-do-i-send-e-mail-from-sql-server.html

http://blogs.techrepublic.com.com/datacenter/?p=363
0
 
RiteshShahCommented:
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.
0
 
Chris MConsulting - Technology ServicesCommented:
Hi,
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 :-)
 
 
0
 
somchai_edpAuthor Commented:
-
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now