![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi All
I am new to this Outlook development through VSTO and needed a quick clarification. I am creating new emails in my app (using VSTO & C#) programatically and am able to do that but was not sure if this is the best way to do it: Here is what I do: public Outlook.MAPIFolder outBoxfolder; outBoxfolder = app.GetNamespace("MAPI").GetDefaultFolder(Microsof t.Office.Interop.Outlook.OlDefaultFolders.olFolder Outbox); Outlook.MailItem newMailItem = (Outlook.MailItem)filter.outBoxfolder.Items.Add(Ou tlook.OlItemType.olMailItem); newMailItem.Subject = mycopiedItem.Subject + " (Please treat this as Private)"; newMailItem.To = "aaa.hotmail.com"; newMailItem.CC = string.Empty; newMailItem.BCC = string.Empty; The above code works but Please let me know if there is a better way to create new emails. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating Task from Email -- How can I Link Back to Original Email? | Steve Newhouse | Outlook and VBA | 1 | July 19th 07 04:36 PM |
Inserting a buildingblock item into an email programatically | Mikael | Outlook and VBA | 2 | March 26th 07 03:44 PM |
Creating Outlook Search Folder Programatically. | Elanchezhian.R | Outlook and VBA | 2 | February 7th 07 06:09 AM |
creating new email | eblaster | Outlook - General Queries | 1 | August 9th 06 02:28 PM |
Changing the FROM address when sending email programatically | mecg96 | Outlook and VBA | 1 | April 20th 06 09:42 PM |