Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Integrating Outlook for sending email
 

Integrating Outlook for sending email

I have a small application that I have developed that needs to send email. As of now I have everything setup to usethe System.Net.Mail namespace. This works well but I am getting feedback from the users who have Outlook that they would like it to be used to send the message so that they have the copy in sent items for records.

My question is this. I have people using this software that don't have Outlook. I need a way to test for the presence of Outlook as the default mail program. If Outlook is that application, then I want to know how I can create the mail message so that it is sent with Outlook. For those who don't have Outlook I want to use my existing code.
AutomationTool_Brad  Thursday, February 12, 2009 5:05 PM
Hi AutomationTool_Brad,

To check if the Outlook is the default email client, you can try to find in the following location in the registry.
HKEY_CLASSES_ROOT\mailto\shell\open\command.

Besides, you can check if the Outlook is installed by checking
SOFTWARE\Clients\Mail.

To send messages using OutLook, you can use the automation of OutLook. Please look at this support article for some sample code.

If you have any problem, please feel free to let me know.

Best regards,
Bruce Zhou


Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, February 16, 2009 8:29 AM
Hi AutomationTool_Brad,

To check if the Outlook is the default email client, you can try to find in the following location in the registry.
HKEY_CLASSES_ROOT\mailto\shell\open\command.

Besides, you can check if the Outlook is installed by checking
SOFTWARE\Clients\Mail.

To send messages using OutLook, you can use the automation of OutLook. Please look at this support article for some sample code.

If you have any problem, please feel free to let me know.

Best regards,
Bruce Zhou


Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, February 16, 2009 8:29 AM

You can use google to search for other answers

Custom Search

More Threads

• dropdrown menu in toolbar
• ListView Scroll and Resize Column events
• Chart in the Windows form
• The line endings in the following file are not consistent. Do you want to normalize the line endings?
• Workaround for Windows NT Service Control OCX problems with Multithreading from Visual Basic 4-6
• I need the list control (styled with check boxes) to move its focus and selects the list item that I just checked.
• help need with Cell Click Event of DataGridView
• Docking Windows in .NET
• hyperlink to open a new form
• Controlling ContainerControl's Contained Controls