Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
how to make subject line read only, disable reply-all, forward buttons when sending a new mail using EWS API.

BElow is my code

XML
EmailMessage email = new EmailMessage(service);
email.ToRecipients.Add("testuser@test.com");
email.Subject = "Hellos";
email.Body = "<html> <body>This is the first email I've sent by using the EWS Managed API.</br>Please select approve/reject : <Table> <tr>  <td style=padding:.75pt .75pt .75pt .75pt><p ><a href=mailto:test@test.com?subject=leave;Approved leave&amp;body=Please enter your comments for approval:>Approve</a>o:p></o:p></p></td></tr> </table> </body></html>";
email.SendAndSaveCopy();


/when I click on approve link in the mail, it opens a new mail with a subject 'leave'. How can I make this subject readonly so that the sender should not be able to change it .
Also Only send button should be enabled.

Please help its urgent.
Posted
Updated 2-Nov-14 1:09am
v2

1 solution

I don't this question has anything to do with Exchange Web Service[^].

What you need to realize is that EWS is nothing more than an API which helps you to implement certain functionality in Exchange Server.

And adding on top of that what you expect is not even part of a Exchange Server but definitions in the RFI for email messages.

Every email message sent (be it a first one, reply or a forward) is considered as a new mail message. It's just the Mail Servers such as Exchange Server which enable to have a trace and trail of the messages to treat them as a reply/forward.

Another factor is the email client which you are using to reply/forward the message. Even if there was(or is) any support for the headers which can define what you are expecting, it needs to be implemented by all the email clients to understand what has been requested.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900