473,671 Members | 2,206 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xp_sendmail failed with mail error 0x80004005

Hello!

My environment is: Win 2000 Server, MS SQL-Server 2000 (SP2)
and MS ExchangeServer 5.5

the two following TransactSQL-codepieces show different
results:

1. with attachment

master..xp_send mail
@recipients = 'j*******@rac.d e',
@subject = 'test',
@message = 'test',
-- *************** ***************
@attachments = 'c:\test.txt',
-- *************** ***************
@no_output = 'False'

-->18025 level 16 state 1 line 0
xp_sendmail failed with mail error 0x80004005

2. without attachment

master..xp_send mail
@recipients = 'j*******@rac.d e',
@subject = 'test',
@message = 'test',
-- *************** ***************
-- @attachments = 'c:\test.txt',
-- *************** ***************
@no_output = 'False'

-->Mail sent.

why am I not able to send emails with attachments?

Who can help me???

Thanks in advance

Jürgen
Jul 20 '05 #1
2 23646
Hello,

I had faced similar problems. I think if u look into the site it will
help you definitely. I will try later and come up with a direct
solution. For time being try the site and find out if it helped.

http://www.sqldev.net/xp/xpsmtp.htm

Cheers
RVG

j.******@rac.de (Jürgen Hetzel) wrote in message news:<ef******* *************** ****@posting.go ogle.com>...
Hello!

My environment is: Win 2000 Server, MS SQL-Server 2000 (SP2)
and MS ExchangeServer 5.5

the two following TransactSQL-codepieces show different
results:

1. with attachment

master..xp_send mail
@recipients = 'j.******@rac.d e',
@subject = 'test',
@message = 'test',
-- *************** ***************
@attachments = 'c:\test.txt',
-- *************** ***************
@no_output = 'False'

-->18025 level 16 state 1 line 0
xp_sendmail failed with mail error 0x80004005

2. without attachment

master..xp_send mail
@recipients = 'j.******@rac.d e',
@subject = 'test',
@message = 'test',
-- *************** ***************
-- @attachments = 'c:\test.txt',
-- *************** ***************
@no_output = 'False'

-->Mail sent.

why am I not able to send emails with attachments?

Who can help me???

Thanks in advance

Jürgen

Jul 20 '05 #2
I finally replaced xp_sendmail calls after repeated attempts with
"help" from MS and MANY MANY other tech support forums and BBS forms.
I even formatted the drives, reloading OS, SQL, Outlook.
It just plain doesnt work.
Dont beleive the "works fine for me" guys.
It doesnt.

USE xp_OACreate to access the IIS SMTP service you will now have to
install.. This service is MUCH faster and more secure than MAPI.

xp_sendmail is MAPI
Mapi is Outlook
Awake people dont put outlook on ......anything much less a server.
Change your code to use a STANDARD MS service.
Outlook is not a standard service, but a user app.

have a nice mapi-free day

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1295
by: Jeff Cochran | last post by:
Does anyone have a code snippet or example on using the xp_sendmail SQL procedure from an ASP page (VBscript)? I have no problem with the stored procedure from a query and I think my problem is getting the parameters passed to the procedure correctly, or just in using stored procedures from ASP. I can execute this SQL from Query Analyzer fine: xp_sendmail "testuser", "Hello World!"
6
2468
by: Nathan Griffiths | last post by:
I have been testing our SQL Mail setup in SQL Server 2000 (sp3a) and have found that when I attach results as a file, every other character is a control character which causes each real character output on a separate line. I have no idea why this is happenening, I've never seen it before. The code looks like this; EXEC master.dbo.xp_sendmail @recipients = '<email address>', @dbuse = 'TestDB',
6
2482
by: Rolf Kemper | last post by:
Dear All, we are running SQL2000 Sever and make use of the xp_sendmail. For any reason the mail service can run into problems and it looks like that the statemnt below gets not finished. EXEC @Status = master..xp_sendmail @recipients=@TOList, @copy_recipients=@CCList,@subject='the subject goes here',@message=@MailText,@no_output=TRUE
2
3145
by: Eric Timely | last post by:
After a trust with exchange server established the xp_SendMail gives the following error: xp_sendmail: failed with mail error 0x80070005 Prior to the trust everything worked fine. I have tried the following: 1)Checking SQL and SQLAgents accounts all match up with default mail profile.
1
7748
by: Marco Gerlach | last post by:
Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
0
2088
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control Any feed back would be apreciated http://support.microsoft.com/default.aspx?scid=kb;EN-US;31795 FIX: "Failed to Start Monitoring Directory Changes" Error Message When You Browse to an ASP.NET Pag View products that this article applies to This article was previously...
1
10457
by: TG | last post by:
This is a snippet from my code. When I run it, I get the error message "IErrorInfo.GetDescription failed with E_FAIL(0x80004005). " I can't find anything online that helps me to understand the cause. Can someone please help? **************************************** Dim SelectQuery As String = "SELECT ExchangeID, Surname, GivenName, Initials FROM Global-List" Dim ConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data...
5
2491
by: Nathan Sokalski | last post by:
I am attempting to send an email using ASP.NET 1.1's Mail.SmtpMail.Send() method. My code contains all of the following: Dim mailmsg As New Mail.MailMessage Mail.SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings("smtpserver") mailmsg.BodyFormat = Mail.MailFormat.Text mailmsg.Subject = "My Subject"
1
3884
by: Stephen2 | last post by:
I'm trying to send an email using master..xp_sendmail with parms and the default Outlook profile. I can successfully test the profile on my own computer and on the server. I'm running using Windows authentication and have given myself full admin rights in MSSQL. Which account is mssql trying to send the email from? Is it the servers or my local clients?
0
8390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4221
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.