none
How to add button in email body RRS feed

  • Question

  • Dear All,

    how do we add an asp.net button to email body.my requirement is to add two buttons in email body of outlook and to execute some piece  of code when user clicks on each button.

    how to create the button? and write the click events for it?

    Thanks and Advance..!

     
    Wednesday, May 16, 2012 8:38 AM

Answers

  • Hi Sucindran,

    Thanks for posting in the MSDN Forum.

    It's based on my experience that you are hard able to approach your goal via htmlBody. There seems have no workround to add it via code. However you can open a Word document and insert a command button in it then cut it and paster it to mail body. This is the only way which I found to approach your goal.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, May 17, 2012 4:13 AM
    Moderator

All replies

  • html engine used in outlook to display html based mails will not execute your code, be it js or simple post back of forms.
    Wednesday, May 16, 2012 9:01 AM
  • Hi Sucindran,

    Thanks for posting in the MSDN Forum.

    It's based on my experience that you are hard able to approach your goal via htmlBody. There seems have no workround to add it via code. However you can open a Word document and insert a command button in it then cut it and paster it to mail body. This is the only way which I found to approach your goal.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, May 17, 2012 4:13 AM
    Moderator