|
|
Browse by Tags
All Tags » devmsgteam » Programming (RSS)
Showing page 1 of 4 (32 total posts)
-
Reading Journal attachments using Outlook Object Model: This time, i tried to read all the email and their attachments using Outlook Object Model. I used the following code snippet to do this. 'Code Snippet : How to retrieve Outlook attachments using Visual Basic for Application (VBA) Dim omailitem As Outlook.JournalItem Dim myJournal As Outlook.Items Dim oattach As Outlook.Attachment Set myNamespace = Application.GetNamespace( "MAPI" ) Set myJournal = myNamespace.GetDefaultFolder(olFolderJournal).Items
Posted to Le Café Central de DeVa (Weblog) by deva on September 28, 2009
Filed under: Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, Programming, development, OLE, Attachment, Outlook, Journal, Journal Programming
-
While working with one of my customer we noticed that the yearly recurring appointment doesn’t show in Outlook Web Access or Exchange Web Services(EWS) application. Customer created a monthly or yearly recurring appointment. He set the request to occur on the second, third, or fourth weekday of a month. But, whenever we use Outlook Web Access (OWA) client or customer’s Exchange Web Service (EWS) application to view this request, the request is set to occur on the first weekday of the month; but strangely,
Posted to Le Café Central de DeVa (Weblog) by deva on July 22, 2009
Filed under: Exchange Web Services (EWS), Outlook 2007, KB, meeting request, appointment, DevMSGTeam, Programming, development, OWA, EWS, EWS Troubleshooting, problems, Rollup, Recurring Appointment, Service Pack
-
using System; using System.Net; using System.IO; using System.Text; using System.Xml; namespace SampleCode { class GetFolders { static void Main( string [] args) { // Variables. System.Net.HttpWebRequest Request; System.Net.WebResponse Response; System.Net.CredentialCache MyCredentialCache; string strRootURI = "http://server/exchange/username/Inbox/" ; // Provide the valid URI string strUserName = "UserName" ; string strPassword = "Password" ; string strDomain
Posted to Le Café Central de DeVa (Weblog) by deva on July 22, 2009
Filed under: Exchange Server 2007, Exchange Server 2003, Code Snippets, WebDAV, How to, DevMSGTeam, Programming, development, search, webresponse, CredentialCache, webrequest, credentials, Exchange Programming, inbox
-
In this post, we will create the simple Outlook tasks programmatically using Outlook Object Model API & VBA. We do this by using the code snippet: '[Code Snippet for creating Simple Tasks using Outlook Object Model API & VBA] Private Sub CreateTasks() 'Declare the Task item Dim objTask As TaskItem ' Create Outlook Task item Set objTask = Application.CreateItem(olTaskItem) 'Define its values objTask.Subject = "Test Item" objTask.Body = "Test task item" objTask.Importance
Posted to Le Café Central de DeVa (Weblog) by deva on June 23, 2009
Filed under: Outlook Object Model (OOM), VBScript, task, VBA, DevMSGTeam, Programming, development, TaskItem, CreateItem
-
One of my customer updated that whenever they try to make the remote Exchange Web Service (EWS) call from his C#.Net 2008 application (VS.Net 2008 - .Net Framework 3.x), he gets the following error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel I had a detailed look at their application code. // Create the Exchange Service Binding ExchangeServiceBinding esb = new ExchangeServiceBinding(); // Add its relevant Credentials like user
Posted to Le Café Central de DeVa (Weblog) by deva on May 23, 2009
Filed under: Exchange Web Services (EWS), Exchange Server 2007, Best Practices, certificate authorities, Secure Sockets Layer(SSL), TLS, Errors, Troubleshooting, DevMSGTeam, Programming, Security, SSL, HTTP, CredentialCache, credentials, proxy, EWS, ExchangeServiceBinding, x509, EWS Troubleshooting
-
In this we will see how to create & send e-mail messages using Exchange Web Service (EWS). It’s pretty simple with EWS to do. // Create the Exchange Service Binding ExchangeServiceBinding esb = new ExchangeServiceBinding(); // Add its relevant Credentials like user name, password, domain and URL esb.Credentials = new NetworkCredential(userName, Password, domain); esb.Url = @"https://myexchangeserver/EWS/Exchange.asmx" ; // CreateItemType and set its relevant properties/values CreateItemType request
Posted to Le Café Central de DeVa (Weblog) by deva on May 22, 2009
Filed under: Exchange Web Services (EWS), Exchange Server 2007, DevMSGTeam, Programming, development, C#, SMTP, CredentialCache, e-mail, credentials, EWS, ExchangeServiceBinding
-
In this article, we are going to see how we can get Explorer & Inspector selected mail item using Outlook Object Model (OOM) & .Net and process it. '[Code Snippet : VB.Net, .Net Framework 2.0/3.5, Outlook Object Model (OOM)] ... 'Declaration part Dim ThisOutlookSession As Outlook.Application = New Outlook.Application Dim NS As Outlook. NameSpace = ThisOutlookSession.Session Dim objsel As Object 'Check it's Inspector or Explorer Window If TypeName(ThisOutlookSession.ActiveWindow) = "Inspector"
Posted to Le Café Central de DeVa (Weblog) by deva on February 18, 2009
Filed under: Code Snippets, Outlook 2007, Outlook 2003, design, Outlook Programming, Outlook Object Model (OOM), messages, DevMSGTeam, Programming, .Net, development, Outlook, ActiveExplorer
-
In this session, we will have a look about how to get the mailbox statistics information using from Exchange Server 2007 SP1 using C#.Net & Exchange Powershell. I tried the following code to get the mailbox statistics… 1: .... 2: //Create Runspaceconfiguraiton object 3: RunspaceConfiguration config = RunspaceConfiguration.Create(); 4: PSSnapInException snapEx = null ; 5: 6: //Add it to the Powershell SnapIn 7: PSSnapInInfo info = config.AddPSSnapIn( "Microsoft.Exchange.Management.PowerShell.Admin"
Posted to Le Café Central de DeVa (Weblog) by deva on December 21, 2008
Filed under: Exchange Web Services (EWS), Exchange Server 2007, Code Snippets, Powershell, Exchange Management Shell (EMS), Configure, mailbox, DevMSGTeam, Programming, development, C#
-
Code Snippet (C#): //Declaration part string strExchSvrName = "" ; string strMailbox = "" ; string strCalendarUri = "" ; string strDomain = "" ; string strUserName = "" ; string strPassword = "" ; System.Net.HttpWebRequest WebDavRequest = null ; System.Net.HttpWebResponse WebDavResponse = null ; System.Net.CredentialCache MyCredentialCache = null ; byte [] bytes = null ; System.IO.Stream WebDavRequestStream = null ; // Provide the Exchange server name; strExchSvrName = "mydomain.in" ; // Provide
Posted to Le Café Central de DeVa (Weblog) by deva on December 3, 2008
Filed under: Exchange Server 2003, Code Snippets, Calendar, WebDAV, XMLHTTP, appointment, DevMSGTeam, Programming, development, C#, HTTPS, HTTP
-
Please find the Code Snippet Access Exchange Server 2003 using WebDAV in your Web application per KB : 1: 'Declaration Section 2: Dim strServerName as String = "Server Name" 'TODO: Change to your environment 3: Dim strDomain as String = "Domain Name" 'TODO: Change to your environment 4: Dim strUserID as String = "Username" 'TODO: Change to your environment 5: Dim strPassword as String = "Password" 'TODO: Change to your environment 6: 7: ' Create our destination URL. 8: Dim strURL As String = "https:/"
Posted to Le Café Central de DeVa (Weblog) by deva on December 2, 2008
Filed under: Exchange Server 2003, Code Snippets, WebDAV, design, XMLHTTP, DevMSGTeam, Programming, development, HTTPS, SSL, HTTP, XML Parser, Forms Based Authentication
1
|
|
|