473,593 Members | 2,813 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 23642
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
1292
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
2464
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
2479
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
7742
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
2083
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
10433
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
2488
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
3883
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
7874
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
8241
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
8366
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
7997
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,...
0
8227
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3853
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
3893
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1469
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.