Solved

SQL sendmail error

Posted on 2004-10-07
2
808 Views
Last Modified: 2008-01-09
Hi Experts,

I am getting an error message when trying to email in SQL Server.

The code im using is:

BEGIN
Exec Master.dbo.xp_sendmail 'info',
@subject = 'New Web Enquiries',
@message = @TEXT_BODY,
@attachments = '\\matrix\codex$\Website_Enquiries.doc'
END

This code is within a stored procedure and used to work before we went active directory and now im getting the following error:

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

I also tried just starting and stopping the mail session but I am getting this error:

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

Any Ideas?
0
Comment
Question by:colin_palmer
2 Comments
 
LVL 14

Accepted Solution

by:
Thandava Vallepalli earned 500 total points
ID: 12247213
0
 
LVL 6

Expert Comment

by:JaffaKREE
ID: 12248480
colin,

 take a look at this thread which seems to be the same problem.

http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_21158494.html
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

830 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