How to include Voting Button in Outlook Mail in VB.NET

Tolani

I'm fairly new to VB and I have created an email to be sent to a recipient which is coded in vb from the example; How to: Programmatically Create an E-Mail Item

  private void ThisAddIn_Startup(object sender, System.EventArgs e)
    {
        CreateMailItem();
    }

    private void CreateMailItem()
    {
        Outlook.MailItem mailItem = (Outlook.MailItem)
            this.Application.CreateItem(Outlook.OlItemType.olMailItem);
        mailItem.Subject = "This is the subject";
        mailItem.To = "[email protected]";
        mailItem.Body = "This is the message.";
        mailItem.Importance = Outlook.OlImportance.olImportanceLow;
        mailItem.Display(false);
    }

Furthermore, I briefly looked at the Outlook MAPI refrence today since it's used in my office but I'm confused on how to proceed.

What I want to include in the email is a voting button e.g Approve/Reject so I can filter the received email from the Recipient based on the subject "Approve: blabla" using the MAPI .

P.S Outlook gives the subject title of the response in either "Approve:blasddd" or "Reject:hjjkkkk" . Please any suggestion will be greatly appreciated.

Dmitry Streblechenko

You need to use the MailItem.VotingOptions property. See https://msdn.microsoft.com/en-us/library/office/ff424466.aspx

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get Outlook PST Name from Selected Mail VB.NET

From Dev

VB.Net Outlook 2010 Add in How to Listen To Inspector Close Event (Mail Item)

From Dev

VB.net Outlook checking for mail and calender events

From Dev

Get selected mail items in Outlook Explorer with VB.Net

From Dev

How to detect and Approve of Voting Buttons in Outlook VBA?

From Dev

How to bind button to method in VB.net

From Dev

how to automatically disable a button in vb.net

From Dev

How to create thumb button VB.net

From Dev

VB.NET how to extract recipients for an Outlook appointment?

From Dev

how to create asp.net voting system?

From Dev

How to include/import a c++ app in VB.net

From Dev

How to click on a button based on its inner text? VB.Net

From Dev

How to know which command button is clicked in vb.net?

From Dev

How to disable a button after print in vb.net?

From Dev

How to make the backcolor of a button blink in vb.net

From Dev

Outlook PST export does not include mail that have not been downloaded

From Dev

How to send email via vb.net catch exception with outlook programmatically?

From Dev

How can I programmatically cancel an outlook meeting with asp.net VB?

From Dev

How do I dispose System.Net.Mail.MailMessage in VB when using SendAsync

From Dev

VB.NET - How to know if a mail sent through app has been received

From Dev

How to implement voting in Rails without voting gem

From Dev

How to include the message box within the Open file dialog in VB.net

From Dev

How to open a Outlook mail item in a composing state?

From Dev

How to change Outlook e-mail adres

From Dev

How to find a ''Outlook Compatible Mail Designer Tool"

From Dev

JXA .- How to open a mail based on ID in Outlook

From Dev

How to change button background color based on database boolean field in ASP.NET using VB.NET?

From Dev

Add additional participants to an ongoing outlook email voting

From Dev

How to include a call to a file in PHP mail() function

Related Related

  1. 1

    How to get Outlook PST Name from Selected Mail VB.NET

  2. 2

    VB.Net Outlook 2010 Add in How to Listen To Inspector Close Event (Mail Item)

  3. 3

    VB.net Outlook checking for mail and calender events

  4. 4

    Get selected mail items in Outlook Explorer with VB.Net

  5. 5

    How to detect and Approve of Voting Buttons in Outlook VBA?

  6. 6

    How to bind button to method in VB.net

  7. 7

    how to automatically disable a button in vb.net

  8. 8

    How to create thumb button VB.net

  9. 9

    VB.NET how to extract recipients for an Outlook appointment?

  10. 10

    how to create asp.net voting system?

  11. 11

    How to include/import a c++ app in VB.net

  12. 12

    How to click on a button based on its inner text? VB.Net

  13. 13

    How to know which command button is clicked in vb.net?

  14. 14

    How to disable a button after print in vb.net?

  15. 15

    How to make the backcolor of a button blink in vb.net

  16. 16

    Outlook PST export does not include mail that have not been downloaded

  17. 17

    How to send email via vb.net catch exception with outlook programmatically?

  18. 18

    How can I programmatically cancel an outlook meeting with asp.net VB?

  19. 19

    How do I dispose System.Net.Mail.MailMessage in VB when using SendAsync

  20. 20

    VB.NET - How to know if a mail sent through app has been received

  21. 21

    How to implement voting in Rails without voting gem

  22. 22

    How to include the message box within the Open file dialog in VB.net

  23. 23

    How to open a Outlook mail item in a composing state?

  24. 24

    How to change Outlook e-mail adres

  25. 25

    How to find a ''Outlook Compatible Mail Designer Tool"

  26. 26

    JXA .- How to open a mail based on ID in Outlook

  27. 27

    How to change button background color based on database boolean field in ASP.NET using VB.NET?

  28. 28

    Add additional participants to an ongoing outlook email voting

  29. 29

    How to include a call to a file in PHP mail() function

HotTag

Archive