outlook-2013

MailItem.Reply Event not working as expected

白昼怎懂夜的黑 提交于 2021-01-29 07:54:55
问题 I want to write a script that changes the format of the mail, when I am replying to a text- or rtf-mail, using Outlook 2013. To have something to begin with. I used the reply event described in the MS dev centre. Unfortunately the example does not work as I expect it to. For testing, I put in a simple message box that should pop up after clicking the reply button. I never see that message box. What did I do wrong? Public WithEvents myItem As MailItem Sub Initialize_Handler() Set myItem =

Outlook template rule to sort mails among directories

我只是一个虾纸丫 提交于 2020-07-24 01:29:07
问题 I have folders created for different projects (e.g. Proj1, Proj2, Proj3, ...). It is general convention in the department to sent emails concerning specific project with its name in the subject (e.g. "Proj1: project finished!"). I know that I can create rules for every project to move mails that contain its name to the project folder. However, I would need to create as many rules as the number of folders I have - so its not very convenient and optimal. Is there any way to create a rule (a

Outlook template rule to sort mails among directories

半城伤御伤魂 提交于 2020-07-24 01:27:10
问题 I have folders created for different projects (e.g. Proj1, Proj2, Proj3, ...). It is general convention in the department to sent emails concerning specific project with its name in the subject (e.g. "Proj1: project finished!"). I know that I can create rules for every project to move mails that contain its name to the project folder. However, I would need to create as many rules as the number of folders I have - so its not very convenient and optimal. Is there any way to create a rule (a

Outlook template rule to sort mails among directories

混江龙づ霸主 提交于 2020-07-24 01:25:30
问题 I have folders created for different projects (e.g. Proj1, Proj2, Proj3, ...). It is general convention in the department to sent emails concerning specific project with its name in the subject (e.g. "Proj1: project finished!"). I know that I can create rules for every project to move mails that contain its name to the project folder. However, I would need to create as many rules as the number of folders I have - so its not very convenient and optimal. Is there any way to create a rule (a

Switch To Outlook Calendar using VSTO

混江龙づ霸主 提交于 2020-01-15 10:59:04
问题 I have a CustomTaskPane that I have added to Microsoft Outlook 2013. This pane includes a WPF Calendar control that when double clicked I would like it to switch from the current Outlook view (Mail) to the Calendar view and go to the date selected in the control. Here is the code I am using: private void TopCalendar_MouseDoubleClick(object sender, MouseButtonEventArgs e) { CalendarView calView = null; Explorer explorer; DateTime goToDate = (TopCalendar.SelectedDate.HasValue) ? TopCalendar

How to add images from resources folder as attachment and embed into outlook mail body in C#

非 Y 不嫁゛ 提交于 2020-01-06 21:10:30
问题 I have a couple of images stored in visual studio project Resources folder, and I have to load them and display on the outlook mail body. Here it is the code: Bitmap b = new Bitmap(Properties.Resources.MyImage); ImageConverter ic = new ImageConverter(); Byte[] ba = (Byte[])ic.ConvertTo(b, typeof(Byte[])); MemoryStream logo = new MemoryStream(ba); LinkedResource companyImage = new LinkedResource(logo); companyImage.ContentId = "companyLogo"; mailitem.HTMLBody += "<img src=\"cid:companyLogo\">"

How to add images from resources folder as attachment and embed into outlook mail body in C#

爱⌒轻易说出口 提交于 2020-01-06 21:10:11
问题 I have a couple of images stored in visual studio project Resources folder, and I have to load them and display on the outlook mail body. Here it is the code: Bitmap b = new Bitmap(Properties.Resources.MyImage); ImageConverter ic = new ImageConverter(); Byte[] ba = (Byte[])ic.ConvertTo(b, typeof(Byte[])); MemoryStream logo = new MemoryStream(ba); LinkedResource companyImage = new LinkedResource(logo); companyImage.ContentId = "companyLogo"; mailitem.HTMLBody += "<img src=\"cid:companyLogo\">"

How to get the MailItems of a specific folder in Outlook

这一生的挚爱 提交于 2019-12-31 07:36:07
问题 My folder is called "Request Mailbox" in Outlook How can I get a list of all mailitems in that folder 回答1: For a delegate mailbox already open in Outlook, use Application.Session.Folders.("TheDelegateMialboxName@YourCompany.com").Folders("TheFolderName") 回答2: To get list of MailItems , you can simply do this MailItem list will be displayed as Email Option Explicit Sub MailItems() Dim olNamespace As Outlook.NameSpace Dim olFolder As Outlook.MAPIFolder Dim olItem As Outlook.MailItem Set

Why are MailItems created in Sent Items folder shown in compose mode in Outlook 2013

走远了吗. 提交于 2019-12-25 09:14:16
问题 I have a Outlook 2013 addin that has a ItemSend Eventhandler that I can't get to work right. What it does is: Loops all recipients (to, cc, bcc) and creates a separate copy for each with only that email as recipient and sends them. Then deletes them from sent mail folder. This works fine. Creates one more copy, that has the original to, cc and bcc information. Uses the move-method to move it to the Sent items folder, because Save would put it in Outbox. It must not be actually sent, it should

TFS 2010 and Outlook 2013 integration

淺唱寂寞╮ 提交于 2019-12-25 02:24:43
问题 How can I convert my Outlook tasks to Tfs Task workitem s I've found this Outlook Tfs Addin, but it seems it doesn't support Outlook 2013. 回答1: TeamLook supports Outlook 2013 with TFS 2010 and can convert Outlook tasks to work items. 回答2: Wit-It 2013 does look promising however the current installation seem to be having some basic issues in at least the SCRUM template - like being unable to copy from the [Description] field to the [Acceptance Criteria] field with ctrl-x. So it's very