HowTo: Set a reference to CDOSYS

You could set a reference directly to the CDOSYS file. However, there this is a more elegant way overall and that is to do it in Visual Studio: Click on Solution Explorer. Right click the “References” node in the tree and select “Add Reference…”. Click on the COM tab. Navigate to the “Microsoft CDO for…

0

Sample: Use JavaScript with OOM to create an email with an attachment and display it in Outlook for sending.

This sample shows how OOM can be used with JavaScript from the command line. Use cscript to launch it – this will cause the script to write the output to the command window.   // Use this command line:  cscript test.js function test() { WScript.Echo(‘Start ————-‘); try { var outlook = new ActiveXObject(‘Outlook.Application’); var email = outlook.CreateItem(0);…

0

About: Encrypting or signing a message programmatically

We get cases on encrypting email from time to time.   With Microsoft messaging APIs, sending an encrypted or signed message is not just  matter of flipping flag or pointing to a certificate.  The easiest is going to be using Outlook Object Model (OOM);  however, because of its user tied usage it cannot be used in a…

0

About: Exchange Transport Agents

API Interface: .NET and in process with Exchange transport. Business Logic: Access and modify messages in Exchange transport. Language Support: .NET Direct Property Access:  Can access and change the content of messages in transport. Product Versions: Exchange 2007+ Summary: As mail flows through Exchange SMTP transport an Exchange transport agent can look at the stream and modify. Note that…

0

About: SMTP Event Sinks

API Interface: COM interfaces. Business Logic: SMTP event sink interfaces which allow code to read and in cases modify a message during STMP transport Language Support: Event interfaces can be implemented using managed (.NET) code or C++ Direct Property Access: N/A Product Versions: Windows Server 2000 and 2003   Summary: An STMP event sink is code which run…

0

About: SMTP Sending APIs

Summary: Microsoft has several APIs which send email by SMTP.  These ‘SMTP Senders’ are meant to send email to SMTP servers and do not have access to a mailboxes or public folders. Mail submitted by SMTP will not be saved into the Sent Items of the sender’s mailbox.  The beauty of these APIs is that…

0

About: System.Net.Mail (SNM)

API Type: SMTP Sender API Interface: .NET Framework Namespace Classes. Business Logic: Sending mail via SMTP. Language Support: .NET Languages only. Direct Property Access: N/A. Product Versions: .NET Framework 2.0 and later (as of .NET 3.5).   Summary: SNM is a pure .NET namespace for sending mail via SMTP.  System.Net.Mail replaces System.Web.Mail, which was a partial .NET wrapper for…

0

About: System.Web.Mail (SWM)

API Type: SMTP Sender API Interface: .NET Framework Namespace Classes. Business Logic: Sending mail via SMTP. Language Support: .NET Languages only. Direct Property Access: N/A. Product Versions: All versions of .NET Framework (as of 3.5).   Summary: The System.Web.Mail namespace was the original email messaging class in the .NET Framework.  It is a simple wrapper around CDOSYS.  The functionality availabe…

0

About: CDO for Windows 2000 (CDOSYS)

API Type: SMTP Sender. API Interface: COM Library. Business Logic: Sending mail via SMTP Language Support: Works with both managed (.NET) and unmanaged code and scripting languages such as VBScript. Direct Property Access: N/A. Product Versions: Windows 2000 and later. Summary: CDOSYS has been a system component used to send email since Windows 2000.  It was meant to replace CDONTS. …

1

Best Practices - EWS Authentication and Access Issues

Authentication and access to a mailbox is an often misunderstood area.  I’m going to cover Authentication and type of access (impersonation vs delegate access vs direct access) and common problems developers run into in this article. Authentication vs Authorization. Lets start from the beginning with some basic information on authentication and authorization,  The first thing…

3