Le Café Central de
Deva             


                    ... Deva blogs!!



  • Le Café Central de DeVa

    Unicode mails send using CDOSYS & Bodypart show special or funny characters in message body

    • 1 Comments

    Recently I was working with a Customer who uses ASP & CDOSYS to send Unicode content e-mails. He had the following partial code-snippet:

    ...
    Set objMail = Server.CreateObject("CDO.Message") 'Create CDO.Message Object
    Set objBodyPart = objmail.BodyPart 'Create BodyPart
    objBodyPart.Charset = "UTF-8" 'Set relevant Charset
     
    Set objConf = Server.CreateObject("CDO.Configuration") 'Create Configuration Object
    Set objFields = objConf.Fields 'and set its Configuration fields
     
    With objFields 
    .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send using port or pickup
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" 'Specify SMTPServer
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 20 'Specify timeout
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 'Specify the port
    .Update 'Update the Configuration
    End With 
     
    With objMail 
    Set .Configuration = objConf 'Set the configuration object
    .From = email 'Set From users
    .To = Trim(recip) 'Set recipients
    .Subject = subject 'Set the subject
    .TextBody = txString 'txtString contains the unicode chars
    End With 
     
    objMail.Send 'Send
    'Release the objects
    Set objFields = Nothing 
    Set objConf = Nothing 
    Set objMail = Nothing 
    ...

    But he updated that he can display the information correctly in a web browser using UTF-8 encoding on the web page; But whenever he send the information
    via email the Unicode values in the message body show the "special or funny" characters.He also tried setting the charset for the email but it doesn't made any difference.

    When we started troubleshooting we found that we need to set the HTMLBodyPart and TextBodyPart Charset in the above code, which resolved the issue.

  • Le Café Central de DeVa

    My First Preview : Outlook 2010 – Calendars & Inbox

    • 2 Comments

    I want to share couple of relevant information with respective Outlook 2010 CTP with respect to Calendars.

    Outlook has adopted the Ribbon in the Inbox and all throughout Outlook.

    The purpose of the Ribbon in Outlook is to help you become more efficient in getting your work done – be that processing e-mail in your Inbox (Mail Home Tab), managing your Calendar (Calendar Home Tab), or doing work in Tasks (Tasks Home Tab).

    Feature called “Quick Steps” available in Outlook. It is easy-to-use one-click buttons which perform multiple actions at once. Well, you can customize that one also – if you want to make your Outlook sophisticated with the use of this new feature.

    To more learn about this, you can refer the blog post about Introducing Quick Steps by Melissa Macbeth, Program Manager …

    Experience with Conversation. Try with the Conversations experience in Outlook 2010, its an entirely new way to take control of your Inbox.

    Certainly this will be the whole new level by allowing all of your email to look, act, and function as smart groups of related messages.

    Even if you want to slim down the conversation, you can use the same conversations drop-down feature – which helps us to hide the bulkier (even if it is) conversation thread too. If you want to read more on this, you can refer the blog post “What’s up with my Inbox in Outlook 2010 from Michael Affronti, Product Manager and learn how these features were designed to help you get through your email faster than ever before.

    • Easier way of create & manage meetings: If an e-mail conversation gets to a point where a meeting would be more useful, just click Meeting Reply to set up a meeting with the people involved in the conversation. It will copy the content of the e-mail conversation into the meeting request, to help keep you within the context of what has already been discussed, and add the recipients to the invitation.

    Also we can try easily searching the appointments using “Search Contextual Tab”.

    If you want to view the “new schedule view”, you can view multiple calendars horizontally - very effective way to help teams organize meetings. If you want to try read more on this, you can refer the blog post from Rainer Schiller, Outlook Program Manager.

    • Working with Calendar Preview: Now if we want to try something with respect to Meeting requests, we can see what’s new with this version – you can feature with “Calendar Preview”. 

    screenshot of calendar preview in reading pane

    This shows a slice of your calendar in the meeting request allowing you to read the request and check that date on your calendar at the same time – this saves your time by combining two steps – read meeting request & see if you’re available in your calendar

    screenshot of meeting series calendar preview in reading pane with labels for the buttons

    If you want to learn more, you can get detailed blog post from Tom O’Neil on this. Also i request you to try checking the Microsoft Office Outlook team Official blog site to get more update about Outlook 2010 and so on.

    Certainly these are some of my my favorite features in Outlook 2010, and I hope you like it too. I will keep you posted more on this…

  • Le Café Central de DeVa

    Outlook Programming: How to retrieve unread messages from any Outlook folder?

    • 1 Comments
    Recently one of my customer updated that he got a requirement to programmatically retrieve unread messages from any Outlook folder to be implemented part of his application. We tried the following steps -  Will show you how you can programmatically retrieve unread messages from any Outlook folder using Outlook Object Model (OOM) API.

    Let we first have a look at the following code snippet (C#.Net):
    Outlook.MAPIFolder Fldr = this.Application.ActiveExplorer().Session.GetDefaultFolder
    
            _(Outlook.OlDefaultFolders.olFolderInbox);
    
    Outlook.Items UnReads = Fldr.Items.Restrict("[Unread]=true");
    
    MessageBox.Show(string.Format("Unread items in Inbox = {0}", UnReads.Items.Count));
    

    Line # 1, we need to specify target Outlook folder that we need to read messages. Here I used Inbox.
    Line # 2, we need to filter target folder items using Restrict filter as Unread]=true to get unread items
    Line # 3, displaying the number of unread items.

    Please note: In order to retrieve unread messages from any Outlook folder, just point out the target folder in the Line # 1, instead of Inbox.

    Pretty simple isn’t it Winking smile

  • Le Café Central de DeVa

    MIX 11: Hardware-accelerated HTML5, IE9 & Mango

    • 0 Comments

    Last March 2010 @ MIX 10, we (MS) announced Hardware-Accelerated HTML5, Pushes Boundaries on Web and Cloud Development. Also MS released first platform preview for Windows Internet Explorer 9, highlights commitments to jQuery, OData, expanded support for HTML5, hardware-accelerated graphics and text, and a new JavaScript engine. Together these allow developers to use the same markup and deliver graphically and functionally rich Web applications that take advantage of modern PC hardware through a modern operating system. As part of its commitment to interoperability, MS detailed its support for a number of HTML5 specifications, including CSS3, Scalable Vector Graphics (SVG), XHTML parsing, and the video and audio tags using industry-standard (H.264/MPEG4 and MP3/AAC) codecs, among others. In addition, MS demonstrated a new JavaScript engine that uses the multiple cores of today’s modern chips to effectively manage computing resources and improve Web performance. By combining increased interoperability with a new JavaScript engine and Direct 2D technology, Internet Explorer 9 enables Web developers to provide users with richer experiences that render more quickly and consistently.

    Now @ MIX 11, MS demonstrated the value of developing for HTML5 and the standards-based Web with Internet Explorer 9 on PCs running Windows and Internet Explorer 9 on Windows Phone. With the forthcoming release of Windows Phone, coming later this year, MS is providing developers with more hardware capabilities, better browsing and improved tooling, as well as expanded opportunities and Windows Phone Marketplace options. Together, these technologies create a richer application environment that expands mobile usage scenarios.

      Qantas for Windows Phone allows users to manage travel plans including checking in and reviewing the status of an upcoming flight. Coming soon to Windows Phone Marketplace.

    The new application platform enables developers to take advantage of the following:

    • Application multitasking for background processing, audio and file transfer, and fast application switching

    • Deeper phone integration so apps can, for example, take better advantage of the versatility of Live Tiles (refer the above pic)

    • Access to the camera and Motion Sensor library so developers can build apps that incorporate device hardware and build augmented reality experiences

    Apart from this, MS provided the first deep look at the development platform for the next version of Windows Phone, arriving on new and existing handsets later this year. Developers will soon have updated Windows Phone Developer Tools. Improved tools include a performance profiler and sensor simulation, enabling developers to build more integrated and high-performing applications. Using this, the developers (we) will be able to take advantage of these new capabilities to create even more creative and engaging Windows Phone apps and games.

    Way to go!!

  • Le Café Central de DeVa

    OOM & VBA : How to delete Outlook recurring Task items (whose status marked as Completed)

    • 2 Comments
    '[VBA & Outlook Object Model : Code snippet to delete Outlook recurring Task items (whose status marked as Completed)]
     
    'Declaration part
    ...
    dim otaskitem as Outlook.Taskitem
    dim ofolder as Outlook.Folder
     
    'Get the Task items
    set ofolder = Application.Session.GetDefaultFolder(olFolderTasks)
    For each item in ofolder.items
    set otaskitem = Item
     
    'Check the status of the specific Taskitem is "Completed" or not
    if otaskitem.Status = olTaskcomplete then
    'Msgbox "Completed Tasks"
    otaskitem.Delete
    else
    'Msgbox "Not Completed Tasks"
    end if
    Next
    ....
  • Le Café Central de DeVa

    Debug : Workaround - Remote debugging monitor (msvsmon.exe) error on Windows 7

    • 0 Comments

    I was playing around debugging a custom app in one of my Windows 7 & Visual Studio 2010. When I tried running msvsmon.exe (Remote Debugging Monitor) and got the following error message when attempting to remote debug:

    Error while trying to run project: Unable to start debugging.

    This operation returned because the timeout period expired.

    During further investigation, I found that the issue is that the firewall is not setup properly on the Win7 machine for remote debugging. I noticed that when msvsmon first launches, it will prompt the user to configure the firewall.

    Per the debugger blogpost, this happens due to the firewall security API changes since Vista, the prompt may not come up. I tried the following workaround to move ahead:

    Control Panel->System and Security->Windows Firewall: Change notification settings -> enable Notify me when Windows Firewall blocks a new program ->Ok

    After implementing the above, I started remote debugging again and this time I can notice that msvsmon shows popup a windows security alert dialog box that prompt to grant access permission to msvsmon.

    Happy debugging!!

  • Le Café Central de DeVa

    Tutorial : Organizational Forms Library - Series # 1

    • 0 Comments

    What are the various types of Outlook form libraries available?

    There are three types of Outlook form libraries are available, they are (i) Organizational Forms Libraries (2) Personal Form Libraries (3) Folder Libraries.

    What is an Organizational Forms Library?

    • An organization's forms library is a repository for forms (templates that help users to enter and view information)  that are accessed by all users in a company.
    • In simple terms, an organizational forms library is a special type of public folder that is listed only with system folders.

    Some of the examples are, a standard supply request form can be stored in an organizational forms library or a form used to report vacation time etc.

    Why to use Organizational Forms Library?

    If we publish the forms at Organizational forms library it will used throughout the enterprise-wide. Org. forms library acts as the centralized library or repository. Saving to this library provides a quick and easy way to distribute and update forms.

    How to use the forms enterprise-wise or throughout the organization?

    • You must publish a form to this library if you want to make the form available to everyone in your organization.
    • You can publish a form to the Organizational Forms Library when you want to use the same custom form in more than one folder.
    • This library is frequently used for e-mail message forms because they are typically not based on a specific folder.
    • When you publish a form, you can maintain only a single published form.
    • Everyone in the organization can access the forms that are published to this library as long as the administrator grants the users permissions to the library.

    Where these libraries stored in Exchange?

    Exchange stores these libraries in the EFORMS REGISTRY system folder.

    Note: In Exchange Server 2003, you can only create organizational forms libraries in the system folders subtree of the Public Folders tree. Even if you have created new public folder hierarchies to work with the organizational forms libraries, only the Public Folders tree supports the EFORMS REGISTRY system folder.

    What are the permissions required to view or use this?

    Org. forms library is stored on the Microsoft Exchange Server-based computer. The administrator must give you permissions to publish to the Organizational Forms Library. This permission is typically given to only some individuals or a department that manages the Exchange server-based computer

    Note: You can't publish forms to the Organizational Forms library unless the systems administrator grants you permission.

    Multi-languages support for Organizational Forms Library?

    • Organizational Forms libraries provides supports for multi-languages.
    • When you create an organizational forms library, you assign a language to it. You can have only one organizational forms library for each language.
    • When you use the Forms Administrator to create Organizational Forms Libraries, you must consider the different languages that clients use to access those libraries.
  • Le Café Central de DeVa

    Exchange Server 2007 : Do you know what is Calendar Concierge?

    • 1 Comments

    Exchange Server 2007 Microsoft Exchange Server 2007 seamlessly improves the reliability of calendaring by introducing the "Calendar Concierge", a suite of new calendar improvements.

     

    This suite includes,

    • Scheduling Assistant:

    It allows you to schedule meetings faster through an intuitive color-coded interface. Simply, the Scheduling Assistant makes scheduling a meeting a breeze!

    • Calendar Attendant:

    It helps ensure the reliability of calendar items. In addition to making scheduling more efficient, Exchange Server 2007 makes the calendar more reliable with the new Calendar Attendant.

    • Resource Booking Attendant:

    The calendar improvements in Exchange Server 2007 affect not only individual schedules but also the scheduling of resources, such as rooms, projectors, and televisions. It automates resource management, such as conference rooms, projectors, and televisions.

    Together, the elements of the Calendar Concierge the Scheduling Assistant, Calendar Attendant, and Resource Booking Attendant make scheduling a meeting easier and more reliable than ever before.

  • Le Café Central de DeVa

    How to : Configuring EWS Impersonation for Exchange 2010

    • 0 Comments

    Please find the articles how you can configure EWS impersonation for the Exchange 2010:

    Hope this helps!!!

  • Le Café Central de DeVa

    Tutorial : Using Internet Free/Busy (IFB) information – Series # 3

    • 1 Comments

    With continuation from the previous free/busy article 1 & 2, now we will see how to view other people’s free/busy information on the internet; also how to set the free/busy search path for a specific contact using Internet Free/Busy (IFB) feature & ical.

    How to view other people's free/busy information on the Internet?

    You can view the free/busy information for any one of your contacts that publish this data on the Internet. If all your contacts store this information on the same free/busy server, you can set the search path for this information globally for all contacts. Or, if the location of this information varies by contact, you can set the search path specifically for each contact. Use one of the following methods to view other people's free/busy information on the Internet.


    How to set the global free/busy search path for all contacts?
    1. On the Tools menu, click Options.
    2. On the Preferences tab, click Calendar Options.
    3. Click Free/Busy Options.
    4. In the Search location box, type the URL from which you want to view other people's free/busy information.
    5. Click OK three times to close all dialog boxes.

    How to set the free/busy search path for a specific contact?
    1. In the navigation pane, click Contacts, and then double-click an entry to open a contact.
    2. Click the Details tab.
    3. Under the text that reads Internet Free-Busy, type the fully qualified path of the location that you want to search for this Contact's free/busy information in the Address box.
    4. You can use any valid URL format, such as: http://..., file://\\..., or ftp://....
    5. The following is an example of a valid format: ftp://Contactserver/Freebusy/Contactname.vfb
      Internet free/busy information appears on the Scheduling tab of appointments and meetings.
    Related articles:
     
    For a Microsoft Outlook 2003 & 2007 version of this article, see 827775  (http://support.microsoft.com/kb/827775/ ) .
    For a Microsoft Outlook 2002 version of this article, see 291621  (http://support.microsoft.com/kb/291621/ ) .
    For a Microsoft Outlook 2000 version of this article, see 196484  (http://support.microsoft.com/kb/196484/ ) .
  • Le Café Central de DeVa

    Outlook Object Model : Creating simple tasks programmatically using OOM & VBA?

    • 1 Comments

    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 = olImportanceNormal
        objTask.Status = olTaskNotStarted
        objTask.NoAging = True
        'Save the task
        objTask.Save
        MsgBox "Task Created"
          
        ' Clean up.
        Set objTask = Nothing
           
    End Sub
  • Le Café Central de DeVa

    Outlook Errors : Send and receive e-mail errors - Part # 1

    • 1 Comments

    Outlook Send and receive e-mail errors:

    When you try to send and receive e-mail, you may receive an error message that is similar to one of the following:

    No connection could be made because the target machine actively refused it.

    The server could not be found. (Account:account name, POPserver:'mail', Error Number: 0x800ccc0d)

    Task 'server name - Sending and Receiving' reported error (0x800ccc0f): 'The connection to the server was interrupted. If this problem continues, contact the server administrator or Internet service provider (ISP). The server responded: ? K'

    Your server has unexpectedly terminated the connection. Possible causes of this include server problems, network problems, or a long period of inactivity. Account. account name, Server: 'server name', Protocol: POP3, Server Response: '+OK', Port: 110, Secure(SSL): No, Error Number: 0x800ccc0f

    Task 'SMTP server name - Sending and Receiving' reported error (0x80042109): 'Outlook is unable to connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact the server administrator or Internet service provider (ISP).'

    The operation timed out waiting for a response from the receiving (POP) server 0x8004210a

    A time-out occurred while communicating with the server 0x800ccc19

    You may also receive an error message that includes one or more of the following error codes:

    0x800ccc15

    • 0x80042108

    • 0x800ccc0e

    • 0x8004210b

    • 0x800ccc0b

    • 0x800ccc79

    • 0x800ccc67

    • 0x80040900

    • 0x800ccc81

    These error messages may occur if Microsoft Outlook or if Microsoft Outlook Express cannot establish a connection with your e-mail server. These error messages are frequently caused by one of the following:

    • You are not connected to the Internet or a network

    • Incorrect account settings

    • Your user profile in Outlook is damaged

    • An e-mail item on your POP3 server is damaged

    • Incorrect configuration of your AV software

    • Outlook Express has been removed from the computer or the installation is damaged

    • Incorrect configuration of personal firewall software

    The most common causes of these error messages are problems with Internet connectivity and incorrectly configured account settings in Outlook or Outlook Express.

    Please find the following article which talks about the following possible resolution methods available for the various Outlook or Outlook Express and its versions.

  • Le Café Central de DeVa

    Developers Must: Download MSDN Samples library browser

    • 1 Comments

    Developers love code samples, but they have been sitting in front of desktop for too long. A Sample Browser app can give them some time to sit relaxingly in a sofa and continue to learn the beloved code samples. The Sample Browser gives developers a new experience to search, download, learn, and share thousands of code samples. The large sample repository includes Microsoft official code samples for Windows Store apps, over 1200 Microsoft All-In-One Code Framework samples driven by developers' real-world pains and needs, and various product samples and community samples.

    So now you can download them as wish, either to your Windows 8/RT device or Windows Traditional desktop:

    Windows 8 app: Download the Windows 8 app for your Windows 8 or Windows RT device it gives developers a new experience to search, download, learn, share and request code samples. Swipe and search and share - It's that easy! The app also supports the offline mode, so you can learn code samples anytime, anywhere.
    Traditional desktop: Download Sample browser for traditional desktop, this will be very useful when you are using Visual Studio Express.

    Sample Browser for Windows 8/RT device  Sample Browser for Traditional Desktop

    Adding few screenshots for your view:

    Sample Browser for Windows 8  Sample Browser for Windows 8

      Sample Browser for Windows 8  Sample Browser

  • Le Café Central de DeVa

    Outlook Performance Series : How to troubleshoot performance issues in Outlook 2007 with .pst or .ost files?

    • 0 Comments

    Welcome to troubleshooting performance issues in MS Outlook Series - Part 2

    Do you face any one of the following issue, when you work with MS Outlook 2007?

    When you try to,

    • read e-mail emessages ?
    • move e-mail messages?
    • delete e-mail messages?

    Do you face Microsoft Office Outlook 2007 momentarily stops responding?

    Do you know, these symptoms are most noticeable during mail delivery or during synchronization. These symptoms become more pronounced as store size increases. They are more likely to occur when the size of the .pst file or the size of the .ost file approaches 2 gigabytes (GB). Additionally, they are more pronounced in a very large .pst file or in a very large .ost file that is 4 GB or larger. 

    For more information, please find this wonderful article, which talks about how to troubleshoot the performance issues in Outlook 2007 and with respect to larger .pst or .ost files. 

  • Le Café Central de DeVa

    "MAPI_E_FAILONEPROVIDER" when you try to connect to a mailbox on an Exchange 2010 from an Exchange 2003 server

    • 0 Comments

    Recently one of my customer updated that when he tried connecting to a mailbox that is located on a  Exchange Server 2010 from Exchange Server 2003 by using a custom MAPI/C++ application. But it failed and it thrown the following error message: “MAPI_E_FAILONEPROVIDER”.

    As part of troubleshooting the issue, we tried using MFC MAPI utility and can reproduce the issue. During troubleshooting, we found that this issue occurs because the MAPI subsystem on an Exchange Server 2003 server is not designed to be used on an Exchange Server 2010 server.

    To resolve this issue, we recommended to use the following Exchange MAPI subsystem on an Exchange Server 2010 server/on a Exchange Server 2007 server.

    Please note that the Exchange MAPI client and Collaboration Data Objects (CDO) 1.2.1 can be installed only on Exchange 2007 and Exchange 2010 servers. Additionally, it includes the MAPI client libraries and supports CDO 1.2.1. However, you cannot install this download on an Exchange 2003 server.

    Download:

    1) You can download the MAPI Sub system @ Microsoft Exchange Server MAPI client and Collaboration Data Objects 1.2.1

    2) You can download the MFC MAPI Utility @ http://mfcmapi.codeplex.com/

  • Le Café Central de DeVa

    Best Practices : How to quit Outlook application after automation from Visual Studio .NET client?

    • 0 Comments

    When you automate a Microsoft Outlook application from Microsoft Visual Basic .NET or Microsoft Visual C# .NET, the Outlook application does not quit when you call the Quit method. You can notice the application is closed, but still if we notice either the application or Outlook is running in behind the scenes. To make sure that the Office application quits, make sure that your automation code meets the following criteria:    

    • Use System.Runtime.InteropServices.Marshal.ReleaseComObject when you have finished using an object. This decrements the reference count of the RCW.
    • To release the reference to the variable, set the variable equal to Nothing or Null.
    • Use the Quit method of the Office application object to tell the server to shut down.
    • You can try this C#.Net code snippet:

      //If you are using Visual C# .NET, reference the code for the ReleaseObj() function:
       
      private void ReleaseObj(object obj)
      {
          try 
          {
              System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
          }
          catch {}
          finally 
          {
              obj = null;
          }
      }

      In this scenario, you can use the GC.Collect() method and the GC.WaitForPendingFinalizers() method after you release the last object. Because the runtime performs garbage collection on the RCW, the GC.Collect() method forces the garbage collector to run and might release any references that the RCW still has. The GC.Collect() method tries to reclaim the maximum memory that is available.

      Note: That this does not guarantee that all memory will be reclaimed.

      For more reference and detailed information, read blog post series by Matt.

      mstehle- The CDOs and CDONTS of Messaging Development - OOM.NET- Part # 1
      mstehle- The CDOs and CDONTS of Messaging Development - OOM.NET- Part # 2
      mstehle- The CDOs and CDONTS of Messaging Development - OOM.NET

  • Le Café Central de DeVa

    CDONTS, CDOSYS, System.Web.Mail & System.Net.Mail

    • 0 Comments

    Microsoft Windows Server 2003 does not install Collaboration Data Objects (CDO) for NTS (CDONTS). Therefore, applications that use CDONTS do not function on a Windows Server 2003-based computer.

    Windows Server 2003 provides improved alternatives to CDONTS. To make applications that use CDONTS function on a Windows Server 2003-based computer, update existing CDONTS applications to use one of the following technologies:

    • CDO for Windows 2000
      CDO for Windows 2000 provides a broader functionality set than CDONTS. This functionality includes the ability to send messages through a remote Simple Mail Transfer Protocol (SMTP) server. You can use CDO for Windows 2000 (CDOSYS) in applications that are not Microsoft .NET Framework-based.

      For example, Microsoft Visual Basic 6.0 and Microsoft ASP are not based in the .NET Framework. You can also use CDOSYS in .NET Framework applications.
    • System.Web.Mail
      The System.Web.Mail namespace provides a managed wrapper for CDOSYS. The System.Web.Mail namespace is only available in .NET Framework applications.
    • System.Net.Mail
      When we talk about .Net framework, we can use the System.Net.Mail namespace. It provides way to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery.

    FYI: System.Net.Mail Vs System.Web.Mail

    In .NET 1.1, only the System.Web.Mail was available. This implementation needs to be done in quite different way. For example, attachment could only be added from files, not from Streams. So, this can be still used under .Net Framework 1.0 and 1.1, but going forward it’s “deprecated” or “Obsolete”; so it’s recommended that to make use of System.Net.Mail.

    The .NET 2.0 implementation is System.Net.Mail and is much more flexible and has a richer feature set.

  • Le Café Central de DeVa

    Kinect for Xbox 360 launch @ New York’s Times Square

    • 0 Comments

    Last night, New York’s famed Times Square went controller-free, as the Crossroads of the World was transformed into a dancing, singing, A-list celebration for today’s North American launch of Kinect for Xbox 360. A full day of demos, star-studded appearances and a massive, choreographed dance routine culminated in an excited line of thousands of fans eagerly waiting to take home the future of home entertainment, now available at more than 30,000 retailers nationwide.

     

    Xbox 360 took over Times Square today draping it in purple and hosting a dance party with thousands to celebrate the launch of its newest product, Kinect, which lets you be the controller.

    You don’t need to have a controller to play Microsoft Xbox hereafter. That’s true that with the new version – Kinect for Xbox 360 Simply step in front of the revolutionary sensor, and Kinect sees you move, hears your voice and learns how you play. No buttons. No barriers. No controllers. Just you. With 17 Kinect games available this holiday season — including dance, fitness, sports, racing and family experiences — Kinect gets everyone in the family off the couch, on their feet and in the game.

    Frank Sanchez Jr. & Mark Wahlberg Attend the Kinect for Xbox 360 Launch with Boys & Girls Club of America - Frank Sanchez Jr. President and CEO, Boys And Girls Clubs of America and Mark Wahlberg with Boys and Girls Club members attend the Kinect for Xbox 360 Launch with Boys & Girls Club of America in Times Square on November 3, 2010 in New York City.

     

    Simply, Kinect transforms Times Square into a celebration of controller-free fun Smile

     

    More information is available at http://www.xbox.com/Kinect or http://www.facebook.com/xbox.

  • Le Café Central de DeVa

    Outlook Object Model : Why i can’t able to assign value for MAPIFolder.WebViewURL ?

    • 1 Comments

    One of my customer had created an Outlook Add-in using VSTO & Outlook Object Model (OOM). As per the business logic, he need to implement the WebViewURL in it. The MAPIFolder.WebViewURL works fine and take’s us to set value to it most of the times, but it doesn’t function as expected in some time; the strange thing is it’s not throwing any error or exception when we execute the code.

    //[Code Snippet : C# , VSTO, Outlook Object Model (OOM)]
    ...
    //Provide the non-default store path
    String pstPath = @"providelocalpath like c:\personals.pst";
     
    MAPIFolder _pstFolder;
    //Add the PST
    this.Application.Session.AddStoreEx(pstPath, OlStoreType.olStoreDefault);
    _pstFolder = this.Application.Session.Folders[2];
     
    //Provide PSTFolder Name
    _pstFolder.Name = "SampleFolder";
     
    //Set the values
    MAPIFolder mf = _pstFolder.Folders.Add("MyHtmlView", Type.Missing);
     
    //Assign value for MAPIFolder.WebViewURL
    mf.WebViewURL = "http://www.microsoft.com";
    mf.WebViewOn = true;
    ...

    MAPIFolder.WebViewURL Property (Microsoft.Office.Interop.Outlook) Returns or sets a String (string in C#) indicating the URL of the Web page that is assigned to a folder. Read/write.
    http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.webviewurl.aspx

    When we start troubleshooting the case, we found that the issue happens for the non-default stores.

    During research we found couple of community blog post references, Randy & Ryan’s MS Press book that with respect to Microsoft Office Outlook 2007, the home page setting is disabled for non-default stores. Non-default stores can include Personal Folders files (.pst) or the Microsoft Windows SharePoint Services folders. These folders are also stored in a .pst file. To see the home page setting for a non-default store, right-click the store in the Navigation Pane, click Properties, and then click the Home Page tab.

    By default, you cannot type or paste a URL in the Address box. This issue occurs because, by default, home pages are disabled for non-default stores. To overcome this issue, we don’t have any programmatic resolution; but we can implement the resolution by refer the following support KB.

  • Le Café Central de DeVa

    API's that are not included in Exchange Server 2007 ?

    • 0 Comments

    When you migrated from Microsoft Exchange 2000 & 2003, where they provide several API's that are not included in Microsoft Exchange Server 2007. Please find the following API's that are not included in the Exchange Server 2007 environment & the recommended technologies to migrate to.

    APIs that are not included in Exchange 2007

    API

    Status in Exchange 2007

    Replacement Technology

    CDOEX

    De-emphasized but still supported.

    Exchange Web Services

    CDOEXM

    Not included in Exchange 2007.

    Microsoft Windows PowerShell and Exchange 2007 commands

    CDOWF

    Not included in Exchange 2007.

    Windows Workflow Foundation (WWF) and Microsoft BizTalk Server 2006

    EXOLEDB

    De-emphasized but still supported.

    Exchange Web Services

    MAPI

    De-emphasized but still supported.

    Exchange Web Services

    Public Folders

    De-emphasized but still supported.

    Exchange Web Services

    Store Events

    De-emphasized but still supported.

    Exchange Web Services

    WebDAV

    De-emphasized but still supported.

    Exchange Web Services

    Web Forms

    Not included in Exchange 2007.

    ASP.NET

    WMI Providers

    Not included in Exchange 2007.

    Windows PowerShell and Exchange Server 2007 commands.

     

  • Le Café Central de DeVa

    VS 2010: Increase IntelliSense performance using Windows Automation API

    • 0 Comments

    The Windows Automation API library enables accessibility tools, test automations, and pen services to access a standard user interface across operating system versions.

    Do you know applications that use Windows Automation APIs can significantly decrease Microsoft Visual Studio IntelliSense performance if Windows Automation API 3.0 is not installed? For example, the Windows pen and touch services can significantly decrease Visual Studio IntelliSense performance if Windows Automation API 3.0 is not installed.

    You can download the update from http://support.microsoft.com/kb/981741. This update is available as a stand-alone download for 32-bit editions of Windows XP and for Windows Server 2003. This update is not available for 64-bit editions of Windows XP. The Windows Automation API is a component of the platform update for Windows Vista and of the platform update for Windows Server 2008.

  • Le Café Central de DeVa

    How to create recurring tasks using Exchange Web Services for Exchange 2007/2010?

    • 0 Comments
    Earlier i got a chance to play around creating recurring tasks. I followed the article from MSDN and it worked like charm for me.

    public TaskType CreateRecurringTask()
    {
        // Create the task item and set property values.
        TaskType task = new TaskType();
        task.Subject = "Recurring Task";
        task.Body = new BodyType();
        task.Body.BodyType1 = BodyTypeType.Text;
        task.Body.Value = "Occurs every week";
        task.StartDate = DateTime.Now;
        task.StartDateSpecified = true;
     
        // Create the regeneration pattern.
        WeeklyRegeneratingPatternType regenerationPattern = new WeeklyRegeneratingPatternType();
        regenerationPattern.Interval = 1;
     
        // Define the recurrence pattern.
        NoEndRecurrenceRangeType recurrenceRange = new NoEndRecurrenceRangeType();
        recurrenceRange.StartDate = task.StartDate;
     
        // Set the regeneration and recurrence patterns.
        TaskRecurrenceType recurrence = new TaskRecurrenceType();
        recurrence.Item = regenerationPattern;
        recurrence.Item1 = recurrenceRange;
     
        task.Recurrence = recurrence;
     
        // Create the request to make a new task item.
        CreateItemType createItemRequest = new CreateItemType();
        createItemRequest.Items = new NonEmptyArrayOfAllItemsType();
        createItemRequest.Items.Items = new ItemType[1];
        createItemRequest.Items.Items[0] = task;
     
        // Send the request and receive the response.
        CreateItemResponseType createItemResponse = this.Service.CreateItem(createItemRequest);
     
        // Access a response message.
        ItemInfoResponseMessageType responseMessage = createItemResponse.ResponseMessages.Items[0] as ItemInfoResponseMessageType;
     
        // Return the new task item.
        return responseMessage.Items.Items[0] as TaskType;
    }
     
    public ExchangeServiceBinding Service
    {
        get
        {
            if (this.service == null)
            {
                this.service = new ExchangeServiceBinding();
                this.service.Credentials = new NetworkCredential(
                    this.UserName,
                    this.Password,
                    this.Domain);
                this.service.Url = this.Url; 
     
                // Set the request version.
                this.service.RequestServerVersionValue = new RequestServerVersion();
                this.service.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1;
     
                // Specify the time zone for the DateTime properties of tasks.
                TimeZoneDefinitionType tzdt = new TimeZoneDefinitionType();
                tzdt.Id = "Eastern Standard Time";
                TimeZoneContextType tzct = new TimeZoneContextType();
                tzct.TimeZoneDefinition = tzdt;
                this.service.TimeZoneContext = tzct;
            }
            return this.service;
        }
    }
  • Le Café Central de DeVa

    Windows Desktop Search 3.0 does not return Outlook 2007 e-mail items

    • 1 Comments

    When you use Windows Desktop Search 3.0 together with Microsoft Office Outlook 2007, you experience the following symptoms:

    • No e-mail items are returned when you use Windows Desktop Search to search for items.

    • On a Microsoft Windows XP-based computer, Outlook may not appear on the All Locations menu in Windows Desktop Search.

    • When you open the Indexing Options item in Control Panel, you experience one of the following symptoms:

    Microsoft Office Outlook does not appear in the Included Locations list in the Indexing Options dialog box.

    Microsoft Office Outlook appears in the Included Locations list. However, a folder icon appears next to Microsoft Office Outlook instead of the Outlook 2007 icon.

    • If you click Modify in the Indexing Options dialog box, you experience one of the following symptoms:

    Microsoft Office Outlook does not appear in the Indexed Locations dialog box.

    Microsoft Office Outlook appears in this dialog box. However, if you expand Microsoft Office Outlook, Mailbox - Your Name does not appear.

    • If you are running Windows Vista, the following event is logged in the Application log:

    Event Source: Search
    Event Category: Gatherer
    Event ID: 3036
    Date: date
    Time: time
    Type: Warning
    User: N/A
    Computer: ComputerName
    Description: The content source <mapi://[GUID}/> cannot be accessed.
    Content Windows Application, SystemIndexCatalog
    Details:
    The filtering was stopped because of a user action, such as stopping the crawl
    {0x80040d54}

    If you are running Windows XP, the following event is logged in the Application log:

    Event Source: Windows Search Service
    Event Category: Gatherer
    Event ID: 3036
    Date: date
    Time: time
    Type: Warning
    User: N/A
    Computer: ComputerName
    Description: The content source <mapi://[GUID}/> cannot be accessed.
    Content Windows Application, SystemIndexCatalog
    Details:
    The specified address was excluded from the index. The site path rules may have to be modified to include this address.
    {0x80040d07}

    This issue occurs if the following registry subkey is missing from the computer:

    HKEY_CLASSES_ROOT\Outlook.Application

    You may experience this issue if you install a Microsoft Office 2003 program after the 2007 Microsoft Office system is installed.

    For example, you experience this issue in the following scenario:

    1. You install the 2007 Office system.

    2. You modify the 2007 Office system installation to remove Microsoft Office Word 2007.

    3. You install Microsoft Office Word 2003.

    For detailed information, please go through the following KB article and its resolution steps.

  • Le Café Central de DeVa

    Outlook UI Issue: Save password setting not retained ?

    • 1 Comments

    One of my customer uses MS Windows XP SP3 & Outlook 2007 reported that whenever he tries to connect to the Internet service provider (ISP) to retrieve messages from POP3, his earlier entered password is not retained. He was pretty sure that  he chose to save the password. Also he tried to entering the correct password again does not resolve the issue.

    This issue occurs for one or more of the following reasons:

    • You have a corrupted Outlook profile or a corrupted Outlook Express identity.

    • It may be due to the registry changes or corrupted information.

    • This issue might happen add-ins also.

    I used the following troubleshooting steps:

    Step 1: Check Outlook has valid profile or not.

    It's recommended to make use of new profile without any issues associated with that.

    After you locate the .pst files, create a new e-mail profile in Outlook. To do this, follow these steps.

    1.Start Outlook.

    2. On the Tools menu, click Account Settings.

    3. Click the E-mail tab, and then click New.

    4. Follow the instructions in the Add New E-mail Account wizard to create the new account.
    Note If you do not have the account information that the Add New E-mail Account wizard requires, view the settings for your existing account. To do this, click the account on the E-mail tab in the Account Settings dialog box, and then click Change. Note each setting in the Internet E-mail Settings dialog box.
    If you do not know the password for your e-mail account, contact your Internet service provider (ISP). Or, if your mailbox is not associated with your ISP, contact the network administrator of the server on which your mailbox is located for help with your password.

    Step 2: Open the Outlook in safe mode

    This will avoid any add-ins getting loaded and creating the issues

    1. Click Start, and then click Run.

    2. In the Open box, type outlook.exe /safe, and then click OK.

    Step 3: Troubleshooting with COM Add-in

    To troubleshoot possible problems that are caused by COM add-ins, disable any COM add-ins that you do not use regularly. Then, restart Outlook. If that does not resolve the problem, disable the add-ins one by one. If that does not resolve the problem, disable all add-ins. To disable COM add-ins, follow the steps for the version of Outlook that you are using.
    For Outlook 2007
    To disable COM add-ins, follow these steps:

    1. On the Tools menu in Outlook 2007, click Trust Center.

    2. Click Add-ins, click COM Add-ins in the Manage list, and then click Go.

    3. In the COM Add-Ins dialog box, click to clear the check boxes for any COM add-ins that you want to disable.

    4. After you disable the add-ins, click OK, and then restart Outlook.

  • Le Café Central de DeVa

    Microsoft Entourage for mac

    • 1 Comments

    Microsoft Entourage:mac

    News

    Microsoft Office 2004 for Mac 114 update released Tuesday, February 12, 2008. There is no update for Office 2008 at this time. Still a bit early.

    Updates

    Today i found Amir's couple of blog posts which has information on Office 2008.

    How Entourage works

    How Does Entourage Work?

    • The article explains how Entourage works with a mailbox on an Exchange Server.
    • This blog article will encompass the supported versions of Entourage & Exchange Server, Entourage 2004 & 2008, and Exchange 2000, 2003 & 2007.
    • Let's list all the different features in Entourage for which it needs to talk to Exchange Server or any other server in a Windows Active Directory based environment.

    Microsoft's Mac Entourage

    Entourage 2008 - New features

    Entourage 2008 – New Features Part I

    Part I describes features for all users.

    Entourage 2008 – New Features Part II

    In Part II, Amir describes features which are exclusive to Entourage 2008 users in an Exchange organization where they are working with other Outlook users.

  • Page 5 of 26 (647 items) «34567»