Cdo Error Messages
Contents |
360 games PC games
Cdo Message Error Handling Vbscript
Windows games Windows phone games Entertainment All Entertainment cdo message attachment Movies & TV Music Business & Education Business Students & educators cdo message createmhtmlbody Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet
Cdo Message To Multiple Recipients
Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All
Cdo Message Body
Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
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 cdo message fields add a file attachment. You then use the Send method to send the
Cdo Message Configuration Fields
email. Below I'll show all three types of emails, and how to send an email using a remote SMTP server in cdo message attachment vba 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 https://support.microsoft.com/en-us/kb/910360 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 http://www.paulsadowski.com/wsh/cdo.htm 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/wsfeature. Outlook needs its CDO code (or code to perform a similar function) installed to support collaborating (exchanging messaging code) with other programs. To be able to send email through Microsoft Outlook fromprograms (such as CTI Navigator) http://www.ctimls.com/support/kb/error%20fixes/fix_cdo_email_error.htm that are not part of Microsoft Office, you need to either install Outlook's Collaboration Data http://www.tgrmn.com/web/forum/viewtopict2314.htm Objects (CDO)feature from Microsoft or install special files from CTI (see Outlook 2010-2016 below).Attempting to send email through Office Outlook without Microsoft's CDO code or CTI's fix installed can cause a CDO error, Active X error (429), or Unspecified error.(Note. If you are using an email program other than Outlook in Windows 10, 8, 7, Vista, see Unspecified Error cdo message in Windows 10/8/7/Visa Email.) Click on the version of Office Outlook installed on your computer for appropriate instructions, patches or links to install its collaboration (CDO) or other feature to allow it to email messages (or MLS reports) from programs not part of Microsoft Office: Office Outlook 2016, 2013, and 2010 64-bit Office Outlook 2010 Hotmail Connector Options Office Outlook 2007 Office Outlook 2003 or 2002 (in Office XP) Office Outlook 2000 Office Outlook 1997 cdo message attachment and 1998 Unspecified Error in Windows 10/8/7/Visa Email Fix Active X error 429 in Email Related articles Outlook 2016, 2013 and 2010 Unlike previous versions of Office Outlook, Microsoft does not provide collaboration code (CDO)to allowOutlook 2010 and later to accept e-mail messages created by Windows programs (like CTI Navigator) that are not part of the Microsoft Office suite. ThereforeCTI has created special programming for CTI Navigator to transfer MLS reportsthrough Windows into the default (32-bit) version of Outlook 2010, 2013 or 2016 (for 64-bit Outlook 2010 see below). CTI's special code also works for most installations of Outlook 2007 or 2003 (after installing and activating the appropriate CDO feature as described below). These CTI files will only affect e-mail originating from CTI Navigator. After these special files have been installed on a computer where Outlook is the default mail handler, e-mail reports from CTI Navigator should send out through Outlook whether or not Outlook was already open. To install this special programming so that MLS reports or MLS contacts can be e-mailed through (32-bit) Outlook, first close both CTI Navigator and Office Outlook. Then download and unzip the CDO Fix file (below) appropriate for your version of Windows (CDO_Fix.exe for 32-bit Windows or CDOx86Fix.exe for 64-bit Windows). Do not change the "unzip to folder" from "C:\" unless you insta
subject: E-Mail Script : ActiveX error trying to send CDO.Message I am getting an ActiveX error trying to send CDO.Message. No further explanation. The log shows the correct email addresses, the correct username & password and the correct SMTP. Is there a specific ActiveX option I need to enable? Thanks. This is what I see in the log file: Code: 2008-08-09 10:04:41 : Running script C:\Program Files\ViceVersa Pro 2\GlobalScripts\Global_end.vbs 2008-08-09 10:04:45 : Script Output: 2008-08-09 10:04:45 : Microsoft (R) Windows Script Host Version 5.7 2008-08-09 10:04:45 : Copyright (C) Microsoft Corporation. All rights reserved. 2008-08-09 10:04:45 : User Name: larry9999 2008-08-09 10:04:45 : Password: * 2008-08-09 10:04:45 : From E-Mail: * 2008-08-09 10:04:45 : To E-Mail: * 2008-08-09 10:04:45 : SMTP Server: * 2008-08-09 10:04:45 : Send only if error: False 2008-08-09 10:04:45 : Port: 25 2008-08-09 10:04:45 : Ssl: True 2008-08-09 10:04:45 : C:\Program Files\ViceVersa Pro 2\GlobalScripts\Global_end.vbs(47, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'CDO.Message' 2008-08-09 10:04:45 : End Script Output 2008-08-09 10:04:45 : Script return code: 0 2008-08-09 10:04:45 : ************************************************************ 2008-08-09 10:04:45 : END ID: 20088914313-755675-3120 2008-08-09 10:04:45 : Back to top TGRMN SoftwareSite AdminJoined: 10 Jan 2005Posts: 7286 Posted: Mon Aug 11, 2008 5:10 am Post subject: Hello Are you running the script on Windows 2000? Maybe this helps: http://support.microsoft.com/?scid=kb;en-us;327219&spid=6384&sid=global thanks www.tgrmn.com_________________-- TGRMN Software Support http://www.tgrmn.com http://www.compareandmerge.com Back to top John HendersonGuest Posted: Mon Aug 11, 2008 12:42 pm Post subject: Email notification No, I am on Vista 32. I have looked at all of my Acvtive-X settings. Some are disabled, some enabled and others req