I want to put emails the user receives in a sort of "review status" in my app and let users choose manually if they want them to be let through.
For this I need to filter network traffic to withhold emails receivef with the IMAP protocol from Outlook and send them some time afterward. And to the same for emails being sent.
Would this be possible to do on Outlook on Windows 7/8? Or would I be unable to make Outlook receive the mailing after I filter it out?
The Outlook object model doesn't provide anything for foltering emails.
Instead, you may consider handling the new email programmatically in the code handling the NewMailEx event which is fired when a new item is received in the Inbox. For example, you may develop a VBA macro for doing any customizations in Outlook programmatically. See Getting Started with VBA in Outlook 2010 for more information.
Related
I am developing an Outlook 'on-send' add-in which loads a dialog box if the email is addressed to multiple recipients after the send button is pressed. In the dialog, the user confirms the intended recipients from a list and then presses send. The add-in then allows the send event to happen.
A problem arises if the emails are not formatted correctly; Outlook throws a ‘does not recognise email’ error after trying to send the email. The problem is that when I try to send the email again after the error, the add-in does not load. The add-in should load every time the user tries to send an email to multiple recipients.
Please see a video of this behaviour here: https://youtu.be/U1VFuy1qbHM
As you can see from the video, the email goes to my Outbox fine after the first send. However, Outlook throws an errors when I edit the email in my Outbox and try to send it again (presumably because I was using a made up email to test with). As you can see, if I then update the emails and click send, the email sends without the add-in loading again. The intended functionality of the add-in is that another dialog box should be displayed in this case.
This behaviour also occurs when you reply to an email where the recipient has their email address formatted differently. For example, 'Name Surname (name.surname#domain.com)' instead of 'Name Surname <name.surname#domain.com>'. Outlook does not seem to like this format and throws a similar error after trying to send the email. After updating the email format and clicking send, the add-in does not load again.
The error occurs in Win32.
I do not think the problem is with the Javascript. I think the add-in does not even load when I try to resend the email. Maybe the add-in is somehow holding onto the ‘True’ value of the on-send event from the previous dialog box? I have tried editing the different ‘ReadorEdit’ values in the Manifest file to try and ensure the add-in loads for all cases but it has not helped.
What can I do to ensure the add-in loads after these errors?
Thank you for your help- it is very much appreciated.
I have a requirement to be able to prompt the user when they send an email from Outlook:
If there is an attachment then ask then a question about the attachment
confirm yes / no
cancel appropriately.
In Outlook on premises I can do that through a client Add-In.
The problem is now the customer wants to go to O365 and the functionality needs to be available through the Outlook web client and mobile OWA.
I cannot find any way to trigger an O365 Add-In automatically for outlook web and/or get any hooks into the Send functionality.
How can I trap the send event on O365 Outlook Web?
Any guidance, much appreciated.
No, you cannot trap any events when a message is sent in the current implementation of OWA.
I want to detect an event in Mail Add-in. In Outlook, thick/desktop version, we can detect the mail event, such as MailItem.Send and MailItem.AttachmentAdd.
Is it possible to listen to these events in Outlook online?
Unfortunately there are almost no events of any kind in the Mailbox API, other than asynchronous callbacks that are only fired when you initiate them. There is nothing that I'm aware of that can be used to detect item send or attachment modification events.
The closest option is to use the Outlook Notifications REST API (https://msdn.microsoft.com/office/office365/APi/notify-rest-operations), but these are more suitable to monitoring item/folder level changes. Perhaps you can hook into a notification for the Sent Items folder to approximate a MailItem.Send operation, or watch changes to a draft item to detect a newly added attachment.
nop. you can't do this. Office Apps can't interact with buttons or actions on the client apps such as: Outlook.
In my MS Outlook 2007, I have multiple (several hundred) messages in the Outbox and they are marked in bold, but NOT marked in italics. Hence, I cannot send them unless I open each message individually and hit the Send button :(
Is it possible to use a VBScript to send these messages?
I have no knowledge in scripting whatsoever.
Thank you for your help!
I have multiple (several hundred) messages in the Outbox
Did you submit these messages manually and they are stuck in the Outboox?
Anyway, you can automate Outlook from VBA. See Getting Started with VBA in Outlook 2010 to get started quickly.
Pay special attention to the ItemSend event of the Application class. It is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem, is used in a program. You can display a custom dialog for confirming. The Cancel parameter passed to the event handler allows to cancel the action. If the event procedure sets this argument to true, the send action is not completed.
I need to create an outlook addin that will do the things I listed below before sending a meeting request:
Check how many users are in the To list, warn if there are more than predefined number of users
Warn if subject line is empty
Warn if word "attachment" is used in mail body but no attachments can be found in the mail
Is it possible to do this with Office Interop or with a VSTO addin? I need to intercept and cancel the sending of meeting request if one of the rules above doesn't meet.
Thanks.
You can do it with VSTO. I did use it in the past to make an outlook addin to add a dynamic signature to a message before send it. You can subscribe to events to check your rules, and allow or cancel your meeting request.