Cdo Message 1 Error 800c000d The Specified Protocol Is Unknown
Set objMessage = CreateObject("CDO.Message") then fill-in Sender, Subject and Recipient (To) fields of the headers and the body text which can be either plain text or HTML. You can also add a file attachment. You then use the Send method to send the email. Below I'll show all three types of emails, and how to send an email using a remote SMTP server in the event you are not running your own. I've added and example to illustrate how to request a return receipt and delivery status notifications. Please note, when using the AddAttachment method in your scripts you must use a fully qualified pathname as the argument to the method. Using just a file name or a relative path will produce the error The specified protocol is unknown. If you receive an error message related to objMessage.From then you should try replacing it with objMessage.Sender I've added sample code to illustrate how to load the body of the email from a text file on your disk. I've added a sample of how to load recipient data from a database. I've added a sample illustrating how to use data from Excel in an email. If you are looking for an ASP based email form processor then please look here. If you are interested in a mass mailer using CDO and VBScript, look here. If you find the content of this page useful, please consider making a small donation to show your support and keep the content updated and fresh. This sample sends a simple text email that can be viewed in any email client. Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Example CDO Message" objMessage.From = "me@my.com" objMessage.To = "test@paulsadowski.com" objMessage.TextBody = "This is some sample message text." objMessage.Send Sending an HTML email. Note the use of the Cc & Bcc properties to send using Blind Carbon Copy (Bcc) and Carbon Copy (Cc). These properties can be used with either text or HTML email. Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Example CDO Message" objMessage.From = "me@my.com" objMessage.To = "test@paulsadowski.com" 'The line below shows how to send using HTML included directly in your script objMessage.HTMLBody = "
This is some sample message html.
" 'The line below shows how to send a webpage from a remote site 'objMessage.CreateMHTMLBody "http://www.paulsadowski.com/wsh/" 'The line below shows how to send a webpage from a file on your machine 'objMessage.CreateMHTMLBody "file://c|/temp/test.htm" objMessage.Bcc = "you@your.com" objMessage.CcHelp Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > http://www.paulsadowski.com/wsh/cdo.htm Questions > How do I send an attached file using CDOSYS? Want to Advertise Here? Solved How do I send an attached file using CDOSYS? Posted on 2004-08-24 ASP 1 Verified Solution 42 Comments 1,207 Views Last Modified: 2008-02-20 I can't find the property that would add https://www.experts-exchange.com/questions/21105792/How-do-I-send-an-attached-file-using-CDOSYS.html an attachement to the email. MyMail.AddAttachment doesn't work. I have search EE and Microsoft's site. I just want to attach and send a file specified in the file field. IF you know the answer, could you be kind enough to post a link to all the properties available for CDOSYS. Microsoft's sites seem impenetrable to me. Here's my code right now: dim fileattach fileattach = request.form("fileattachment") strHTML = "" strHTML = strHTML & "
" strHTML = strHTML & "" strHTML = strHTML & "" &message& "
" strHTML = strHTML & "-------------------------------------------------------" strHTML = strHTML & "Message generated by AuraFellows.net, built by SanePlanet.com" strHTML = strHTML & "" strHTML = strHTML & "" Set MyMail = CreateObject("cdo.message") MyMail.From = "admin@aurafellos.net" MyMail.To = "admin@aurafellos.net" MyMail.Subject = subject 'MyMail.TextBody = Totalmessage MyMail.ReplyTo = emailfield MyMail.HTMLBody = strHTML = fileattach MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/c
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Web Forms/CDO.Message error. CDO.Message error. [Answered]RSS 7 replies Last post http://forums.asp.net/t/1463297.aspx?CDO+Message+error+ Aug 27, 2009 02:17 AM by praveenkumarm1 ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Related Links GuidanceSamplesVideos Reply praveenkumar... Member 67 Points 26 Posts CDO.Message error. Aug 26, 2009 12:49 AM|praveenkumarm1|LINK Hii, I need some help with cdo message CDO.Message mail generation. when my mail application is executed i am recieving an error saying, "System.IO.FileNotFoundException: The specified protocol is unknown." The line that is generating the error is, msg.CreateMHTMLBody("maildes.aspx",CDO.CdoMHTMLFlags.cdoSuppressNone," "," "); This is for the first time that i am working on mail generation,So any kind cdo message 1 of help is Appreciated. Thank you. Reply qwe123kids All-Star 32871 Points 7895 Posts Re: CDO.Message error. Aug 26, 2009 01:00 AM|qwe123kids|LINK Hi, http://www.systemwebmail.com/faq/4.3.6.aspx chk the abov link.. Thanks Avinash Tiwari Remember to click “Mark as Answer” on the post, if it helps you. Reply praveenkumar... Member 67 Points 26 Posts Re: CDO.Message error. Aug 26, 2009 02:08 AM|praveenkumarm1|LINK Hi, Thank you four reply but i am still getting the same error. Any other ides? Reply qwe123kids All-Star 32871 Points 7895 Posts Re: CDO.Message error. Aug 26, 2009 02:40 AM|qwe123kids|LINK have U Installet SMTP server?? or If Ur using antivirus Do the Needfull Setting so that u can send mail from Your computer Thanks Avinash Tiwari Remember to click “Mark as Answer” on the post, if it helps you. Reply praveenkumar... Member 67 Points 26 Posts Re: CDO.Message error. Aug 26, 2009 04:34 AM|praveenkumarm1|LINK Hi, I have called the maildes.aspx page specifying i