Cdo Message 1 Error 80070002
error '80070003' The system can't find the path specified The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you can browse existing content. You can find out more information about the move and how to open a new account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 19 of 19 Thread: CDO.Message.1 error '80070003' The system can't find the path specified Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Sep 26, 2007,02:11 #1 KirstyBurgoine View Profile View Forum Posts SitePoint Enthusiast Join Date Jan 2007 Location Shropshire, UK Posts 90 Mentioned 0 Post(s) Tagged 0 Thread(s) CDO.Message.1 error '80070003' The system can't find the path specified Hi, I'm trying to create a simple form that emails its contents using .asp. I'm not a programmer but through various online tutorials I have created this: My form:
and this is my code in email.asp: <% Set objEMail = Server.CreateObject("CDO.Message") Set objConfig = Server.CreateObject("CDO.Configuration") Set Confi = objConfig.Fields Confi("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1 Confi("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\inetpub\mailroot\pickup" Confi.Update Set objEMail.Configuration = objConfig objEMail.To = "test@hotmail.com" objEMail.From = request.form("From") objEMail.Subject = "Query from Makefast website" strBody = strBody & "Nayour question and get tips & solutions from a community of 418,433 IT Pros & Developers. It's quick & easy. CDO.MESSAGE ATTACHMENT P: n/a rn5a When a user posts a HTML Form in an ASP page, the values entered by the user in the Form are mailed to the website owner. Users can also attach a file before posting the Form. To send the e-mail, I am using CDO.MESSAGE. When I tested the app in my local intranet IIS5.1 server, the e-mail part worked fine & even http://www.sitepoint.com/forums/showthread.php?505493-CDO-Message-1-error-80070003-The-system-can-t-find-the-path-specified the attachment was sent along with the mail but after deploying the site at godaddy.com, when I try to send a file from my local hard disk as an attachment, I get the following error: =================================== CDO.Message.1 error '80070003' The system cannot find the path specified. ==================================== which points to the line that does the attachment which is cdoMessage.AddAttachment Request.Form("uploadfile") It's pretty obvious https://bytes.com/topic/asp-classic/answers/649246-cdo-message-attachment what's causing the error - the ASP file resides onthe server whereas the file to be attached exists in the users local hard drive but the question is how do I resolve this error? Please note that users will attach files from their local hard disks. May 19 '07 #1 Post Reply Share this Question 7 Replies P: n/a Dave Anderson rn**@rediffmail.com wrote: To send the e-mail, I am using CDO.MESSAGE. When I tested the app in my local intranet IIS5.1 server, the e-mail part worked fine & even the attachment was sent along with the mail but after deploying the site at godaddy.com, when I try to send a file from my local hard disk as an attachment, I get the following error: =================================== CDO.Message.1 error '80070003' The system cannot find the path specified. ==================================== When you attach a file with CDO.Message, you must provide a URL to that file that the server can access. This is often on the server itself. In effect, you must have the user UPLOAD the file to be attached, write it to disk (or database), then provide a URL to either
Remember Me? Register Lost Password? http://forums.aspfree.com/code-bank-54/sending-emails-using-cdo-message-component-49734.html facebook google twitter rss Free SEO Tools http://stackoverflow.com/questions/24317238/unknown-email-code-from-cdo-message-send-method Advanced Search Forum Programming Code Bank Here Thread: Sending Emails using CDO.Message component Page 1 of 2 12 Last Jump to page: Share This Thread Tweet This cdo message + 1 this Post To Linkedin Subscribe to this Thread Subscribe to This Thread March 6th, 2005,04:48 PM #1 Shadow Wizard Moderator From Beyond cdo message 1 Join Date Sep 2004 Location Israel Posts 31,135 Rep Power 2924 Sending Emails using CDO.Message component Fully working sub routine to send given email body to given email address: Code: <% Const SMTP_SERVER="smtpserver.domain.com" '-------------------------------------------------------------------- 'SendEmail: 'Try to send given email using CDO component. 'Returns empty string in case of success or error message in case of error. '-------------------------------------------------------------------- Function SendEmail(strEmailTo, strEmailFrom, strEmailSubject, strEmailBody, arrAttachments) 'declare variables Dim objMessage 'object for sending email Dim objConf 'object for configuration of email settings Dim x 'loop iterator 'define default return value: SendEmail="" 'create objects: Set objMessage=Server.CreateObject("CDO.Message") Set objConf=Server.CreateObject("CDO.Configuration") 'define settings: If Len(SMTP_SERVER)=0 Then objConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=1 Else objConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'cdoSendUsingPort End If objConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory")=Server.MapPath("/") If Len(SMTP_SERVER)>0 Then objConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtp
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unknown email code from CDO.Message send method up vote 0 down vote favorite 1 I'm trying to send an email via vbscript. Here's my email code: I've hidden the email address of course. In my actual code I'm using a valid email address. Dim objCDO Set objCDO = Server.CreateObject("CDO.Message") objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.oa.caiso.com" objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 objCDO.Configuration.Fields.Update objCDO.To = "abcemail@devnull.com" objCDO.From = Sender objCDO.cc = "" objCDO.bcc = "" objCDO.Subject = txtSubject objCDO.HTMLBody = Replace(sBody, Chr(10),"
") On Error GoTo 0 On Error Resume Next objCDO.Send If Err.Number <> 0 Then Response.Write "Just after the send command " Response.Write "Err.Number is " & Err.Number & "
" On Error GoTo 0 End If set objCDO = nothing When this code runs I see the following error: Just after the send command Err.Number is -2147220978 Now, when I research this error number there is no reference anywhere for error code -2147220978 In fact, a Google search for the number -2147220978 returns no