cdo

CDO: Outlook contact sync - How to identify the correct object to sync with?

I have a web application that syncs Outlook contacts to a database (and back) via CDO. The DB contains every contact only once (at least theoretically, of course doublets happen), providing a single point of change for a contact, regardless of how many users have that particular contact in Outlook (like Interaction or similar products). ...

Understanding Microsoft's CDO.Message offline behavior

I'm using the CDO.Message class to create and send an email from a Visual FoxPro application. I've tested that it works while the user is connected to the internet, and it even seems to work when I send while disconnected from the network, it simply gets sent when the client gets reconnected. One issue I have with the .Send() method of...

Where is "CDO.Appointment"

Hello . I'm using VB .NET 2005 and Exchange Server 2003 installed I have found some code which gives me the ability to connect in an Exchange Server and create an appointment. The thing is that I cannot find the CDO. Appointment. Where can I find it and make the below code to work ? I have tried all the examples with CDO and Outlook. I ...

System.Net.Mail.MailMessage Fields Dictionary

Hi, We’re currently in the process of updating the email dispatch part of our application to replace the deprecated set of classes under System.Web.Mail with the System.Net.Mail classes. The changes have been fairly straightforward but we’ve hit an obstacle today in that we were trying to port the contents of the System.Web.Mail.Mail...

CDO message: text attachment gets corrupted

I'm creating an email message using CDO object (and VB6, but that doesn't really matter). With New CDO.Message .To = "<address>" .Subject = "Manifest test 8" .Organization = "<company>" .From = "<address>" .Sender = .From With .Configuration .Fields(cdoSendUsingMethod).Value = cdoSendUsingPort ...

Creating large amount of mailboxes on Exchange 2003

I've got around 750+ users that I'm going to create mailboxes for. Should I sleep for a bit between creates to not overload the exchange server or does it not matter? I've read that the actual mailbox is not created until the user accesses it or they get mail. I'm using CDOEXM and DirectoryServices in .NET 2.0. Imports System.DirectoryS...

Extracting Embedded Images From Outlook Email

I am using Microsoft's CDO (Collaboration Data Objects) to programatically read mail from an Outlook mailbox and save embedded image attachments. I'm trying to do this from Python using the Win32 extensions, but samples in any language that uses CDO would be helpful. So far, I am here... The following Python code will read the last em...

Error HRESULT E_FAIL when creating Exchange mailbox (CDOEXM.IMailboxStore.CreateMailbox)

I am trying to automate the process of creating an Exchange Mailbox for AD users and am running into an issue. When calling the CreateMailbox method I am receiving the error "Error HRESULT E_FAIL has been returned from a call to a COM component". I have installed and referenced the Exchange Management Tools and am using impersonation f...

MS Outlook CDO/MAPI Blocking Python File Output?

Here is an example of the problem I am running into. I am using the Python Win32 extensions to access an Outlook mailbox and retrieve messages. Below is a script that should write "hello world" to a text file. I need to grab some messages from an Outlook mailbox and I noticed something weird. After I attach to the mailbox once, I can...

How can I migrate email functionality from ASP Classic to ASP.NET?

I previously used CDO.Message and CDO.Configuration in ASP Classic to create HTML emails which was VERY simple to do. In .NET, it appears that you have to give the System.Net.Mail.Message object an HTML string for the content and then somehow embed the required images. Is there an easy way to do this in .NET? I'm pretty new to .NET MVC a...

CDO.Message - to many connections

I am writing a newsletter application using CDO.Message. But get an error back that we have to many connections. Seems they have a limit of 10 simultaneous connections. So, is there a way to send several messages on one connection, or disconnect faster? There is a cdo/configuration/smtpconnectiontimeout parameter, but I think that's m...

Correct format for CDO AddAttachment for UNC path

CDO works fine in Access VBA for me except when I try to use UNC paths for the attachments. According to MSDN documentation on CDO, AddAttachment should allow UNC paths. Here's what I think should work, but doesn't: msg1.AddAttachment "\\serv.dom.local\path with spacesh1\file.xls" It works perfectly fine if I use "C:...". What's th...

Why mail code is not working

Set objCDOSYSMail = Server.CreateObject("CDO.Message") Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration") Set Flds = objCDOSYSCon.Fields Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "any mail" Flds.Item("http://schem...

Multipart HTML and embedded images from .NET without disk access?

I'm working on a product that creates MS Word output by generating an HTML document with the appropriate bits of Word CSS and XML magic embedded in it. I now need to embed RTF (images and styled text) in the document, and so am looking at the multipart HTML generation features in .NET. I'd like to generate the MHTML document by converti...

Server-sent email sporadically includes weird characters

For the past year at least now a good dozen or so of the users of my site have experienced odd characters showing up in the emails they receive. I've researched the issue numerous times and have pretty much written it off to be some sort of encoding issue on the users' end. That conclusion doesn't really sit quite right with me since I'v...

Random exclamation mark in email body using CDO

We are getting random exclamation (!) mark in email body using CDO object in Classic ASP. We are not getting this exclamation mark with outlook. Problem only occur with Lotus Notes client. We use IIS SMTP server to send email. Edit Set myMail= Server.CreateObject("CDO.Message") myMail.Subject="Business and Company News on your Mobile...

CDOSYS and Unicode in the from field - vbScript.

I've got the code below, and I'm trying to set the from field to allow unicode. Currently in my email client I get "??". The subject line and any content shows the unicode correctly. And looking at the MSDN the property should be "urn:schemas:httpmail:from". Anyone solved this issue? Thanks M Dim AC_EMAIL : AC_EMAIL = "[email protected]...

Frequently getting "The requested body part was not found in this message" CDO.Error '800cce05'

On my button click i am sending email. My email body is static and don't changed anytime. I got above error. Most of the time, i got error for couple of clicks and application is able to send email successfully. Sometime applications send email successfully on first click and then failed for 2-3-4 time then again successful. ANy help wi...

Problem in receiving Delivery notifications in CDO

Hi all I have a function that uses CDO to send emails with request to have a delivery receipt when the mail reacehes the recepient. I use the following code: CDO.Message msg = new CDO.Message(); CDO.Configuration conf = new CDO.Configuration(); conf.Fields["http://schemas.microsoft.com/cdo/configuration/smtpau...

MAPI working locally but not on production computer

I just can't get MAPI to work on our production machines. I've already created an application that uses MAPI and sites on that very machine but for some reason I can get my new app to work. I have no idea what I'm doing wrong. Locally I've created an application that uses MAPI to log into a mail profile and retrieve messages. The messag...