FAQ Database Discussion Community


ThisOutlookSession code Working in one account but not working in another Account when copying the code. VBA Outlook 2007

vba,outlook,outlook-vba
Recently I made a function that reads some mails when Outlook is getting closed. This function was created into a specific Module and the Function is being called when Outlook is getting closed. Since the Close/Quit event can't be called in the Module itself (as far as I know) I...

Getting Outlook Window from VSTO Addin

c#,outlook,vsto
I have an Outlook 2013 VSTO addin. I want to center my saveFileDialog I create. TO do this you need to pass it a Window object of the parent. I'm not sure if IWin32Window and Window are the same, but here's what I have. public IWin32Window getWindowHandle() { dynamic activeWindow...

Redirect Hyperlinks to Local Browser in Azure RemoteApp

azure,outlook,remoteapp
Scenario: Outlook client setup using Azure Remote App. A Hyperlink is included in an email. Currently the link is opened using a browser on the Remote App server. Is there a way to redirect this link to a local browser on the user's PC using a group policy or something...

Automatically export incoming emails from Outlook to existing Google spreadsheet [closed]

email,outlook,google-spreadsheet,export
Is it possible at all to automatically export incoming emails from Outlook to existing Google spreadsheet (and be able to edit the spreadsheet, insert new data)? If it is so, where would you start? We want to manage our inbox this way and keep track of assignments. Thank you!...

how does PHP know the real email of the host or server?

php,email,outlook,gmail
As you know there are a lot of websites (Just search on Google) that will send fake email(!), and sending fake email is really easy (As you know). PHP Example: $to = "[email protected]"; $from = "[email protected]"; $subject = "subject"; $message = "this is the message body"; $headers = "From: $from";...

Outlook 2013 Cannot create ActiveX component from ASP.NET Application

asp.net,vb.net,outlook,office-interop
I am trying to send email in VB.Net using outlook 2013. I tested as localhost in debug mode and everything is fine. I can send and read Outlook emails in vb.net. However, when I publish the web application and click the send button I get the following exception: System.Exception: Cannot...

how to add new account in outlook with Name Space C#2003

c#,outlook,namespaces
public void sendEMailThroughOUTLOOK() { if(MessageBox.Show(PublicFunction.L_Get_Msg("msg",28),"MessageBox",MessageBoxButtons.OKCancel)== DialogResult.OK) { try { // Create the Outlook application. Outlook.Application oApp = new Outlook.Application(); //set default account send mail Outlook.Account account = GetAccountForEmailAddress(oApp,"[email protected]"); // Create a new mail item. Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem); // Set HTMLBody. //oMsg.HTMLBody= "<html> <p...

Formatting specific part of text string in VBA

excel,vba,excel-vba,outlook,format
I am in process of creating a macro that will save the current workbook, create a new outlook message and attach the file to the message. My macro does that but I can not format the text in the body of the email to my liking. Dim OutApp As Object...

Paste pivot table as bitmap into Body of Outlook Appointment

excel-vba,bitmap,outlook,paste,appointment
Using Excel VBA, I'd like to make a small pivot table visible to Outlook users. I do NOT want to paste into a message body I DO want to paste into an appointmentItem Here is my code that creates the Appointment and copies Range to clipboard. How do I paste...

Email attachments recorded in Excel

excel,email,excel-vba,outlook,email-attachments
The macro below is designed to take x amount of emails, count how many attachments there are in each mail and then locate certain file formats. It will then record what it has found in a certain excel spreadsheet. The macro works perfectly, but I am now wanting to add...

Autohotkey: copy paste

email,outlook,autohotkey,copy-paste
I recently started using autohotkey, so I am still reading up on it. I am using a webbased program (java) where I am required to copy an e-mail address from a drop-down list. So when I choose a contact in the drop down list and an e-mail address next to...

Send a text/plain email and prevent Outlook from collapsing lines

email,outlook,line-breaks
I send out plain text mails from my web application (e.g. password reset); I'm pretty sure I use proper CRLF line endings all over both header and text. Some lines can be longer than 78 characters, but none more than 998+2. For some mails, Outlook mail clients collapse the whitespace...

setting event organizer with Outlook Calendar REST API

rest,outlook,organizer,outlook-restapi,outlook-calendar
I am using the Outlook REST API for creating events and sending its invitations, based on this documentation I authenticate the logged in user, and send its Bearer token through the Authorization header of the request, and the json-formatted event on its content. If I set the "Organizer" to another...

Drag and drop mail from Outlook to text

c#,email,drag-and-drop,outlook
This is a bit of a soft question, as I haven't really gotten to the point where I have started coding my project yet. What I'm looking for here are guidelines and recommendations as how best to build my desired software. I've always been fascinated with drag and drop technology,...

Office 365 - multitenant application constantly gives unauthorized

azure,outlook,office365
For some reason the following code gives an unauthorized exception, can anyone tell me what i'm doing wrong? In the screenshot below you can find the contents of "theToken", which has been received through Office365 and saved in a database ( 1 minute before excecution) Async Function CalendarDemo() As System.Threading.Tasks.Task(Of...

Unable to open mailItem because of outlook interface..!

c#,outlook,office-interop,office-2013
I have an application where i create a mailItem using Outlook interop. On some systems the code works without problems. But on one of the systems this error appears: Message= Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on...

How to add a new tab in Outlook. Outlook addin/plugin development using Visual Studio 2013

c#,visual-studio-2013,outlook
How do I add a new tab, like for example next to the "View" tab, I need a tab "Custom" and I would like to add my controls here. I am using Visual studio 2013, and project type Outlook 2013 addin, I am new to this outlook addin/plugin development. I...

C# Email - New lines not rendering with white-space: pre-wrap

c#,css,internet-explorer,outlook,html-email
I have an email with a table and one value contains a string with multiple lines. (enter-key) When viewed in outlook or view source in IE, the white-space is not working. Any idea or any solution? Thanks....

Send excel range into email body with autofit

excel,vba,email,excel-vba,outlook
I'm currently using Ron de Bruin's RangetoHTML function to send a couple of tables out in an e-mail. I'd like to have these tables auto-fit to the screen in outlook. Currently, I have to click on each table and go to layout->autofit to screen on each table. I was wondering...

Outlook VBA - set sentonbehalf and Refresh ActiveInspector

vba,email,outlook,outlook-vba
I frequently want to change the sender data in the currently open Mail This is well done by following code: Sub AktiveMailSetVonHotline() Dim oMail As Outlook.MailItem Set oMail = ActiveInspector.CurrentItem oMail.SentOnBehalfOfName = "[email protected]" End Sub` Only question / disadvantage is: After running that macro I can not see that the...

Outlook 2013 VSTO: How to get original MeetingItem for an Appointment?

outlook,vsto
I am working on an Add-in and as part of my work, I need to be able to Accept a meeting request. I need to be able to do this from both the Mail tab when a MeetingItem is selected in the Inbox, and from the Calendar tab when an...

How to show the appointment page from a form region in outlook

outlook,outlook-addin
I have a very simple outlook form region. It is configured as a separate item, and, it is set to appear whenever a we try to compose a new appointment item. (Meeting request). Once I click the button above, it should populate the sender and go back to the main...

How to add a ribbon group to both Outlook inspector windows and the inline response contextual menu?

c#,outlook,vsto,outlook-addin,ribbonx
I want to add the same controls to the ribbon whenever an email is being composed, regardless of whether the email is popped out in an inspector or in an inline response. I can do this by duplicating the same XML in two places, of course, like this: <customUI onLoad="Ribbon_Load"...

Responsive Email - Conditional Statements causing problems in Outlook

email,responsive-design,outlook,html-email
I am building a template for responsive emails and in one section I have two blocks of text which we want to stack in smaller devices. Strangely, the Outlook conditional statements are causing extra padding around them in Outlook only. Thy work great with cells that contain images etc but...

Sending email in HTML [duplicate]

php,html,email,outlook
This question already has an answer here: Send HTML in email via PHP? 6 answers I am setting up a confirmation email script for our customers to receive an email when they complete the online form. I uploaded my script and tested but I received an email with just...

Copying Outlook email body to .csv

vba,csv,outlook,outlook-vba,outlook-2010
After running the code, I am getting run-time Error 9 ( subscript out of range ). I am getting the error on this line : xlSheet.Range("K" & rCount) = Trim(varItem(1)) I looked through the code and I can't seem to figure out what I am doing wrong or missing. Here...

How to show custom update/modifications text when I publish my outlook-addin. VB.NET

vb.net,visual-studio-2012,outlook,outlook-addin
Recently I have created an Addin for my outlook 2013 in VB.net. I usually do a lot of modifications on this application especially in the beginning. These modification automatically download when a user starts its outlook as soon I publish the project. The question I have, and which I cant...

How to create an outlook extension using Visual Studio 2013?

c#,visual-studio-2013,outlook
I need to create an outlook extension which should have a form with two buttons, and it should appear on the right side of the application, like how the todoist app does(red circled in the screenshot). I tried creating using the "Outlook 2013 Add in" project type, I was able...

Deploy Outlook add-in to Office Store

outlook,add-in,outlook-addin,office365
I made add-in for outlook and want to release it to store.office.com. I have dev license for office 365. I made add-in for Outlook using Visual Studio and everything works. I found Microsoft Seller Dashboard, where I can add my application. But on second step it asking me to provide...

Changing the category tag of an email according to data in excel

excel,vba,email,excel-vba,outlook
So I basically want to loop through each email in the Inbox until the subject line in column A matches the subject line of the email. When it has found a match, it will then look along the same row in column C and depending on what is found here...

Save File Dialog in Outlook VSTO Addin

c#,outlook,vsto,outlook-addin
I want to create a save file dialog that opens when you press a custom ribbon button and has the filename and initialdirectory properties set to certain values. Right now I create that dialog within a form. In the designer it shows in the bottom pane as it is not...

Force Outlook to display from display name in header

email,header,outlook
I'm sending an email with .net SmtpClient and MailMessage. I set the from to be From: Something Else <[email protected]>. Note that [email protected] is a valid user on the domain and its display name is "My SMTP Relay". When I get the email in Outlook 2013, the email from name is...

Unread mail can't be get in NewmailEx event in outlook

c#,outlook
i want delete attachment when new mail receiving..... so i use NewmailEx event.....and also tried Newmail event..... i open the outlook --> send a mail to my outlook mail -->the event get fired -->but the received mail is not shown in my unread mail i.e, c# coding didn't get...

Get result of ShowCategoriesDialog in Outlook

c#,outlook,vsto,outlook-addin
In my code I open categorize dialog like this: item.ShowCategoriesDialog(); Is it possible to determine whether user clicked "OK" or "Cancel" in the dialog? Currently I compare item's categories before and after showing the dialog, but maybe there is a better way....

How to determine if the RecurrencePattern in Outlook is end by a date or end by recurrence count

outlook,outlook-addin
For a finite recurring appointment in Outlook, the RecurrencePattern interface doesn't expose a property to tell you if the pattern is end by a date or end by recurrence count. The PatternEndDate, EndTime, and Occurrences properties are always populated. Is there a way to determine the end type of the...

“Best” way to get an Outlook MailItem from .msg file

c#,outlook
To pass from a .msg file to its related Outlook MailItem I found and tried these two ways: Outlook.Application oApp; // --> Outlook Application Outlook.MailItem oItem; // --> Outlook MailItem string file= @"C:\PWS\myMail.msg"; oApp= (Outlook.Application)new Outlook.Application(); // way #1 oItem= (Outlook.MailItem)oApp.CreateItemFromTemplate(file); // or way #2 oItem= (Outlook.MailItem)oApp.Session.OpenSharedItem(file); What is the...

VBA code for new mail alert in Outlook

vba,email,outlook
Need VBA code/script to include in an Outlook rule triggered by new mail that forwards an email containing ONLY the sender email address and subject to an external email address.

Update event with outlook rest api fails with Method Not Allowed

c#,rest,outlook,outlook-restapi
I have an application that uses the outlook REST API for creating events on the user's calendar. The creation of the event works perfectly, but once I tried to to exactly as this post indicates, I get 405 Method Not Allowed. the error details are as follow: {"error":{"code":"ErrorInvalidRequest","message":"The OData request...

Outlook VBA Items.Count wierdness

vba,outlook,outlook-vba
I have a question regarding the functionality of VBA Outlook I currently have a code below which runs on two separate computers. Option Explicit Public olApp As Outlook.Application Public olNs As Outlook.NameSpace Public olFldr As Outlook.MAPIFolder Public olItms As Outlook.Items Public myItms As Outlook.Items Public myDestFolder As Outlook.Folder Public olMail...

How to skip mail that has ANY category tag, but process mail that has no tag?

email,excel-vba,outlook
So I am trying to say if an email has a category then go to PASS_MAIL. But the below code does not work. If Not IsEmpty(mail.Categories) Then GoTo PASS_MAIL This code works as it targets a specific category, but I dont want that. I want it to target ANY category...

Find an email starting with specific subject using VBA

excel,vba,excel-vba,outlook
I am trying to find an email in outlook starting with specific subject and download attachment from that email, however I couldn't do it. I am using a variable with restrict function, however issue seems to be because of usage of wildcards. Can you please let me know what is...

If email subject line starts with certain values then do something

excel,excel-vba,outlook
What is wrong with this line of code? Throws up Run-time error '13', Type mis-match. Dim mail As Outlook.MailItem If mail.Subject Like "VEH" & "*" Or "MAT" & "*" Then Trying to say if the subject of the email starts with "VEH" or "MAT", then do something....

How to read html body of attachment that is mail message in C#?

outlook,outlook-addin
so the problem is I need to get HTML body of mail that is attachment,but don't even know where to start. Tried (MailItem)attachment, searched in attachments properties,saving to file and retrieving data didn't work for me eather. Is it maybe possible to retrieve data with PropertyAccessor? The main question is...

Add image in email not as linked resource but should be visible in outlook

c#,html,email,outlook
I want to add image to email. I tried several ways the final solution I am having is to add image as linkedResource but it will increase the size of email and I don't want that as email is already having several attachments.I am using xslt file to get html...

Outlook API Limitations

api,email,outlook
I am new to APIs and I want to make a program that will mark certain messages as being read with meating certain conditions. It this possible to do with the outlook api. I am looking to have the user select a time duration and maybe a list of people...

Empty HTML mails in outlook.com, microsoft exchange & hotmail.com

html,css,wordpress,outlook,html-email
I have to style an email and when I was done and tested it all seemed to work fine, execpt in outlook.com, microsoft exchange and hotmail. For some reason exchange strips all code used (tables, tr & td tags) whatever I do, is there some workaround or is it just...

VBA not Recognizing MAPI

excel,vba,excel-vba,outlook,outlook-vba
I'm using VBA to enter into an outlook folder and put the message body into a cell. However on set ns = getnamespace("MAPI") I get an error "automation error library not registered". I have the following outlook related references selected (within Excel): Outlook 14.0 Object Library, Outlook SharePoint Social Provider,...

How to capture “Print Tab” click event at the backstage in Outlook 2010 ?

outlook,outlook-addin,outlook-2010,office-addins
I want to capture the click events in "TabPrint" at the backstage of outlook 2010. Followint is what I have done so far I have defined a custom UI in xml as following. I have directed every event to one method (which is OnPrintClick) <?xml version="1.0" encoding="utf-8" ?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"...

Automatically insert email signature into Outlook Meeting Invite

vba,outlook,outlook-addin,outlook-vba
I have been searching the web for a way to do this but no such luck. My goal is to save a meeting agenda template into an email signature which would be inserted into every meeting invite created by me. Looking for some clues on how to do this? ...

Change ActiveX email font

email,outlook,activex,activexobject
Would anyone know how to change the font in an email generated by new ActiveXObject("Outlook.Application")? This seems to default to Times New Roman regardless of the default settings in the mail client. Thanks...

Create Outlook meeting on SharePoint page

sharepoint,sharepoint-2010,outlook,interop,meeting-request
Is it posible to create outlook meeting on Sharepoint page behalf on current sharepoint user? I try to create meeting by button click with next code Application oApp = new Microsoft.Office.Interop.Outlook.Application(); AppointmentItem appointment = (AppointmentItem)oApp.CreateItem(OlItemType.olAppointmentItem); appointment.Start = DateTime.Now.AddHours(1); appointment.End = DateTime.Now.AddHours(2); appointment.Subject = "Some subject"; appointment.Body = "Some body"; appointment.Recipients.Add("[email protected]");...

Is it possible to select a folder based on it's name rather then on it's path? VBA - Outlook

vba,outlook,folder,outlook-vba
Recently I am trying to create a function which selects specific folders. I tested this at one user and it works. The problem however is that I also want to use this function at other users but not having to rewrite the function based on their folder structure. The function...

Office 2010 monitoring calendar events

c#,vb.net,outlook,ms-office,office-interop
Hey all I have the following code in VB.net that i translated from C# that I found on the internet for monitoring a outlook calendar events (Add, modify and delete). The code is: Public Class ThisAddIn Private Sub ThisAddIn(sender As Object, e As System.EventArgs) Handles Me.Startup Dim monitor As New...

Retrieve Outlook details based on alias name Excel VBA

excel,vba,excel-vba,outlook,outlook-vba
I have a list Employee IDs of all the employees in my organization. I want Excel VBA code to get details like first name, last name, designation contact# and department. The alias name is the Employee ID. So the code should take the Employee ID as alias and search Outlook...

Dropzone.js - drop outlook emails

javascript,file,upload,outlook,dropzone.js
We have Dropzone successfully set up in our browser application and it works great! However, we are trying find a way to drag and drop emails from MS Outlook and we have not had any success. Is there a way to do this?

Outlook mailItem fullscreen

c#,outlook,fullscreen,mailitem
I create an outlook mailItem like this, Outlook.Application outlookApp = new Outlook.Application(); Outlook.MailItem mailItem = (Outlook.MailItem)outlookApp.CreateItem(Outlook.OlItemType.olMailItem); mailItem.Subject = mailSubject; mailItem.Attachments.Add(totalPath); mailItem.Body = mailBody; mailItem.Importance = Outlook.OlImportance.olImportanceNormal; //Edit: mailItem.Open += new Microsoft.Office.Interop.Outlook.ItemEvents_10_OpenEventHandler(mailItem_open(mailItem)); mailItem.Display(true); outlookApp.ItemSend += new...

Outlook MailItem HTML Formatting Dropdown

c#,html,outlook
I am currently writing a C# script to send an email. I am using the mailitem.htmlbody and my table is being formatted correctly. However, when I added a dropdown to it, the dropdown doesn't work. The HTML works, I am inclined to believe it is something with Outlook or C#....

VBA Email with pasted chart and text in body

excel,vba,email,excel-vba,outlook
The goal of the following code is to paste the selected chart into the email body below my text. However, it continues to paste it above my text. How can I change it to make it paste below? Thanks! Set OutApp = CreateObject("Outlook.Application") Set OutMail = OutApp.CreateItem(0) With OutMail .CC...

Opening Outlook address book from Excel

excel,vba,excel-vba,outlook,excel-2010
I'm using VBA in Excel 2010, with Outlook 2010 (already open). How could I write a sub for a command button, such that when the user clicks on it: 1 Outlook address book opens; 2 The user selects a contact and clicks ok; 3 The contact's first name, last name...

Accessing shared outlook inbox in python

python,email,outlook
I have a shared inbox in outlook and I want to write some code that would get me the emails from the shared inbox. Right now I can get the emails from my main inbox, but I want to do it for another inbox. This is the code so far:...

Is it possible to make a fluid two-column layout in Outlook 2007+ emails

html,css,email,outlook
I'm coding an email newsletter that must look correct in all email clients, including Outlook 2007+. One section of the email contains two columns that roughly looks like this: ---------------------------------------- | | | | | | | fluid | 340px wide | | content | ad | | | |...

How to copy text and charts in an Excel sheet to Outlook body?

excel,vba,charts,outlook
I am trying to copy text (Constant Range of Cells) and charts in an excel sheet to an outlook body, however so far I succeeded in copying only charts but not text. I want to know the best way to copy both text (in the selected range) and charts from...

Is it possible to reload outlook Office.ComAddIn list?

c#,outlook,outlook-addin,outlook-2010
Background is I have an old addin which i use to install other addin and remove the old one on ThisAddIn_Startup . Everything seemed to work fine,but found one Computer where solution didn't work. I install and remove the addins successfully, but addin doesn't load on first load. private static...

Save emails daily incorporating if filename are duplicates

vba,outlook,outlook-vba
I am writing a macro that will save emails daily. I just thought of a situation that can possibly occur. I sometimes receive emails with the same subject from the sender, but each email has different content. I would like to have a set of statements that will handle this....

OpenSharedItem locating recipient

c#,outlook,office-interop,msg
Using OpenSharedItem functionality to read .msg files and have encountered a problem with determining the recipient of an e-mail if the recipient has had a name change after the file was saved. If a .msg file is saved on disk I can read the PR_RECEIVED_BY_EMAIL_ADDRESS to get back the receiving...

Switching back to outlook appointment from a custom formregion

c#,outlook
In my appointment-creation window there's a button that changes the current view to a form region i created. Inside the form region I've got a button. When that button is clicked, I want to show the appointment creation view. What I've tried so far after searching stackoverflow was this: AppointmentItem...

Access VBA To Send Query Results to Outlook Email in Table Format

vba,ms-access,outlook
I would like to send an e-mail with outlook based on the query results from my table but with table formatting (in the body). For some reason the code is only outputting the last record in the table to the e-mail body, instead of looping and adding all 3 records....

Determine who has read a mail in shared mailbox

vb.net,vba,email,outlook,collaboration
I'm thinking about a possibility to determine who has read a mail in a shared mailbox at Outlook 2010. Of course a MailItem don't hold a property like "readBy", that's why I'm looking for a way to respond to the fact that a message has been marked as read. Then...

Inserting Link inside Mailto body

html,model-view-controller,outlook,mailto
I need to add some URLS to pdfs inside my email body Outlook can create clickable (ctrl+right click) links inside the body. The problem is that if I have spaces in the pdf name the URL breaks. Here is the html generated in my app. The problem is only with...

Save only emails of today

vba,email,outlook,outlook-vba
I am creating a macro in Outlook 2010 that will save emails to a specified folder. The emails will be saved to a folder which is created by the macro. The problem in which I am accounting for is for when I receive emails over the weekend or off business...

Outlook: Move item from me to a folder

vba,email,outlook
I create reminders for myself by sending an email to me and moving them to a folder named [email protected]' under Inbox. I wish to automate this so that every email that is addressed to me only will be moved to [email protected]'. I tried using rules, but I don't think there...

Combining functions for auto attachment

vba,outlook,outlook-vba
I have some script which attaches and sends a file based on some incoming e-mail rules which works perfectly. Sub AddAttachment(Item As Outlook.MailItem) Dim myOlApp As Outlook.Application Dim myItem As Outlook.MailItem Dim myAttachments As Outlook.Attachments Set myOlApp = CreateObject("Outlook.Application") Set myItem = myOlApp.CreateItemFromTemplate("C:\Templates\test upload file.oft") Set myAttachments = myItem.Attachments myAttachments.Add...

Possible ways to optimize batch Outlook appointment processing with MAPITable

outlook,outlook-addin,outlook-redemption
I'm working in a component that syncs our own appointment data with the ones in a selected calendar folder in Outlook. The first time when our appointments sync to Outlook, the ID of our appointment is stored in the user properties of the newly created Outlook appointment. Therefore, before syncing...

Email piping gmail and outlook replied mail

php,email,outlook,gmail
How to fetch the text content of replied mail from gmail and outlook without original message and mail provided automated text Like OUTLOOK: From: [email protected] To: [email protected] Subject: test reply Date: Thu, 21 May 2015 05:34:42 +0000 GMAIL: On 20 May 2015 at 17:52, New User wrote: Also remove user...

Process zip attachments outlook vba script

vba,outlook,outlook-vba
I need to create a macro in outlook to redirect some emails to a specific folder. I have to discriminate plus 10 MB attachments but with the condition thant the files included in the zip should be processed and if the uncompressed content are greater than 10 MB these should...

Save emails to daily folders

vba,outlook,outlook-vba
I am trying to create a macro which will save emails to a folder that is created locally on my hard drive. The folder is created daily through a batch file that was written. The folder name format will be mm-dd-yyyy. My goal is to save all the emails that...

Exchange Error on Calendar item update :- At least one recipient isn't valid

c#,outlook,ews,exchangewebservices,extended-properties
This is the code for accessing my outlook calendar items, change their subjects, add some extended property and update it self. But I am getting an error as "At least one recipient isn't valid" when I'm trying to update the item. I believe that there are no any invalid recipient...

MAPI Outlook History/Change Log

python,outlook,win32com,mapi
Is there a way to see the changes to an 'AppointmentItem' through MAPI/Outlook? So, for example, if a meeting was re-scheduled and the category changed as well, is it possible to see what exactly changed on the Appointment and when? I can pull all current information and use fields such...

Microsoft Interop OutLook C#- Cannot save attachments of type OLE

c#,outlook,interop,office-interop,com-interop
I have a C# program saving attachments from unread emails from Outlook mail box to a folder and the below line of code breaks(first line) for attachment types that are of OLE type with the error "Outlook cannot perform this action on this type of attachment"(Where 'it' is of type...

How do I get mailto links in iOS (safari) to open the Outlook app?

ios,iphone,ios8,outlook
I've noticed that on iPhone users who are using the Outlook app and do not have the native mail app configured, that when they click on mailto links it prompts them to create a new email account in iOS, instead of opening the Outlook app. Is there anyway to have...

Generate and send iCal event to outlook

c#,outlook,gmail,icalendar
Im using DDay.iCal (1.0.2.575, from nuget) to generate a email event. Im using the following code to generate the event: iCalendar iCal = new iCalendar { Method = "PUBLISH", Version = "2.0" }; //REQUEST for update Event calendarEvent = iCal.Create<Event>(); calendarEvent.Summary = "Test"; calendarEvent.Start = new iCalDateTime(new DateTime(2015, 7, 1,...

How to call the quit/close event in outlook 2007 VBA

vba,outlook,outlook-vba
The question is simple, yet hard to achieve for me for some reason. How can I get to fire the quit/close event when outlook 2007 is being closed? I want do display a Yes/No msgbox in VBA which executes code depending on the option chosen when outlook is being closed....

Outlook AddIn Zoom.Percentage

c#,vba,outlook,zoom,outlook-addin
Im trying to translate this VBA code from an Outlook AddIn to C# Private Sub objInspector_Activate() Handles objInspector.Activate Dim wdDoc As Microsoft.Office.Interop.Word.Document = objInspector.WordEditor wdDoc.Windows(1).Panes(1).View.Zoom.Percentage = lngZoom End Sub But I can't get access to the Panes.View.Zoom.Percentage property The main idea is that when the user opens an email, he...

VBA outlook application.wait not working

vba,outlook,outlook-vba
I'm trying to run some code on VBA outlook but I would like it to wait 10 seconds after an email is received before it actually runs the code. I tried using application.wait but it appears that you cannot do this with outlook. Does anyone know how to make VBA...

Outlook Addin, When Loading Error Ribbon_GetDCVisible

c#,outlook,vsto,outlook-addin
I have an outlook VSTO addin, I get the error Ribbon_GetDCVisible Exception occurred while calling the function GetVisisble when it loads. Yhe stack trace shows my last function called is the ThisAddIn_StartUp() handler and it is e mpty. Any ideas? EDIT: I just made a blank outlook 2013 addin and...

VSTO Outlook Addin Ribbon Group Not Showing on Ribbon

c#,outlook,vsto,outlook-addin
I have an Outlook Addin That Adds a Group to the Ribbon with two buttons. It was working perfectly before I added the second button, but they have the same properties just different click handlers. It shows up in the correct place in the customize ribbon menu, but it is...

Get open outlook email as MailItem in Windows service

c#,service,outlook
In case of a desktop application, if I execute the following code lines to open an email and then get the related MailItem everything works fine: string file = @"C:\TestEML\EmlMail.eml"; System.Diagnostics.Process.Start(file); Outlook.Application oApp = (Outlook.Application)Marshal.GetActiveObject("Outlook.Application"); Outlook.MailItem oItem = (Outlook.MailItem)oApp.ActiveInspector().CurrentItem; // now oItem is the COM object that represents our .eml...

Ask for credentials in email application [closed]

c#,visual-studio,email,outlook
I need to make an application in visual studio to retrieve the inbox, sent messages and attachments from an exchange email account, as well as being able to mark as read and delete said messages (An outlook-like application if you will). I have the code to retrieve the inbox and...

Load HTML file into VBA Microsoft Access Email

html,vba,outlook,access-vba
I am trying to load an HTML file into an email that gets sent by my Microsoft Access database. The email gets sent when the user clicks a button (Command109) Here is my code that sends the email: Private Sub Command109_Click() 'Start of code Dim strEmail, strBody As String Dim...

How to create a top-level folder in my Outlook using vb.net - VB.NET, Outlook 2013

vb.net,outlook,outlook-addin
So as the title says, I am trying to create a top-level folder in my Outlook but I haven't got any success with it. I've read several tutorials and code snippets but non of them seem to be a success. So now i Have this piece of code which creates...

Outlook 2013 VSTO: Determine which calendar an AppointmentItem is on?

outlook,vsto
In Outlook 2013 in Calendar view, when an AppointmentItem is selected, I need to be able to determine if that item is on the current user's Calendar, or if they have selected an item from someone else's shared calendar. So if John Doe is the current user, I need to...

How to be sure Outlook application has been loaded completely (application.StartUp event)

c#,outlook
My C# application needs to work close to Outlook. I've implemented a method that allows to load Outlook if it is not on yet. After this loading method I need to start working with emails, read Inbox folder etc. . . obviously, all these behaviours must be executed when Outlook...

'The item is moved or Deleted' Outlook.mailItem

c#,outlook
I create an outlook mail like this: Outlook.Application outlookApp = new Outlook.Application(); Outlook.MailItem mailItem = (Outlook.MailItem)outlookApp.CreateItem(Outlook.OlItemType.olMailItem); mailItem.Subject = mailSubject; mailItem.To = ""; mailItem.Attachments.Add(totalPath); mailItem.Body = mailBody; mailItem.Importance = Outlook.OlImportance.olImportanceNormal; mailItem.Display(true); //Mail is send succesfully? Is it possible to check if the mail is sent successfully or canceled? EDIT: When i...

How to copy a file from a selected message to an outgoing message in outlook through applescript?

outlook,applescript
I have been trying to figure out how to copy an attachment from an incoming message in outlook to a new outgoing message through applescript. The code below is what I've got so far, but it's definitely wrong. Outlook throws and error at me stating: "Microsoft Outlook got an error:...

My outlook VBA code can't find a specific folder

vba,outlook,folder,outlook-vba
I have a sub which reads/gets the email items in a speicifc folder. When I executed it doesnt seem to find the specific folder and I have no clue why. The sub is as follows: Sub HowManyEmails() Dim objOutlook As Object, objnSpace As Object, objFolder As MAPIFolder Dim EmailCount As...

Outlook 2010 scripted rule using VBA

vba,email,outlook,rule,inbox
I am trying to create a very simple (because I'm new and learning) scripted rule in Outlook 2010. The RULE is: If a new mail item comes in from a particular email address, run my script and stop processing rules. The SCRIPT checks the body for a string. If the...

Create Outlook message with Signture in Visual Basic

vb.net,outlook
With the code below I can open an open message in outlook and add a subject line and some text in the body. The problem I have it doesn't keep or use the users signature. Any thoughts on how to keep or use the signature? Dim Outlook As Object Outlook...

FileDescriptora Missing Characters

c#,winforms,com,outlook,clipboard
I am using the code found here to drag-drop .msg files directly from outlook. The FileDescriptorA class is implemented like this: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public sealed class FILEDESCRIPTORA { public uint dwFlags; public Guid clsid; public SIZEL sizel; public POINTL pointl; public uint dwFileAttributes; public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime; public System.Runtime.InteropServices.ComTypes.FILETIME...

Need to extract attachments from Outlook (.msg) attachment via Lotus Notes

outlook,lotus-notes,attachment,lotusscript
I have written an agent that extracts all attachments from all documents in a database and saves them to a local hard drive. However, many of those attachments are Outlook messages (.msg files) that also contain attachments (i.e., attachments within attachments). I need to extract those secondary attachments. My agent...

Outlook reminder get AppointmentItem

c#,outlook
Is there a way to know if a Outlook.reminder is owned by a AppointmentItem ? I've got a eventHandler which is fired when a reminder is fired. In this case i would like to know which Outlook item owns the reminder and if it is an AppointmentItem if it fit...