Resend emails via Exchange WebService API - exchange-server

I've the requirement to resend Emails that were already sent. I don't have to change anything on the mail, only resend it to the original recipients. In the outlook client, it' possible via Message tab, in the Move group, click Actions, and then click Resend This Message.

It's simple:
EmailMessage message = EmailMessage.Bind(...);
EmailMessage.send();

Related

EWS email exchange: getting message-id from a mail from Sent items

I'm developping a tool that allow to handle and move emails in Exchange.
For moving the mails I do need the message-Id. My issue is that when I intercept mails stored in a folder, I also get sent emails. For those mail, i do not retrieve any Message-Id.
My issue is that i met the following case: one sent email was found in the inbox folder. Unfortunatelly, I do not get any message-Id when i get the information details. Is there a way to get this information from this mail ?

Outlook API - Getting Webhook Notifications With Data

I've configured Outlook Webhook notifications according to the instructions here. And I now receive notifications when an email arrives to Outlook inbox.
I don't see any data regarding the E-Mail that was received.
For example, I expected the ResourceData to contain the senders mail, subject, etc.
What should I do to resolve the E-Mail metadata in the hook response?
Thanks!
ResourceData contains the Id property. Just use it to get the message.

A MailItem saved in the ItemSend Event is saved as draft

I'm developing an Outlook add-in that allows the user to save an email to the filesystem just after it's been sent.
To achieve this, I intercept the Application.ItemSend event, and inside my handler I call MailItem.SaveAs(...). It works, basically.
The problem I'm facing is that, when I open the file saved, the email is in draft state. I mean, the recipients, subject and message body can be modified, and the email can be resent. I want the email to be in "sent" state, i.e. not modifiable.
It looks like Outlook API does not provide any event dispatched after the email is sent. Only before, and this is my pain.
Do you have any idea to perform this?
Thanks a lot for your help!
Nico
the earliest you can save the message in the sent state and with the sender properties populated is when Items.ItemAdd event fires on the Sent Items folder.

Sent mail does not show mail trail with custom outlook message form

I have created a Custom Outlook(Outlook 2010) form using default Mail message form, here i have separate Compose and Read page. The Compose page has TO, CC, Subject, Message and additional custom UI elements; Status(a dropdown box) and Ticket(Text Box) and Read page has Labels From, CC, Subject, Message, Status and Ticket. These custom elements are bind to user defined fields rStatus and rticket.
Assigned custom form in Actions tab for Reply, Reply to ALL, Forward and published in my own Inbox and sent folder
On Running following case
Open Custom form in New Items drop down
Set values in TO(with my own email id), Subject, Status, Ticket and some text in Message Body including the signature.
Send this custom message form
Open received message in Inbox, i can see from, subject, status, ticket and message body as sent in point 2 & 3.
Reply this message by changing Status, Ticket and append some more text in the message body in the top.
Send this custom message form
Open received message, here i can see from, subject, updated status and Ticket, while the Message body is empty.
If I open the message in sent folder after pt 6, the message body is empty there as well.
My form has no scripts and send form def with item is unchecked
Thanks
Kiran
It was a bug that was solved in latest patches for microsoft, after updating I can see the message body in step 7 and 8.

Delay emails sent and received through IMAP

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.

Resources