如何使主题行只读,在使用EWS API发送邮件时禁用回复全部,转发按钮 [英] how to make subject line read only, disable reply-all, forward buttons when sending mail using EWS API

查看:81
本文介绍了如何使主题行只读,在使用EWS API发送邮件时禁用回复全部,转发按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使主题行只读,在使用EWS API发送新邮件时禁用回复全部,转发按钮。



BElow是我的代码



how to make subject line read only, disable reply-all, forward buttons when sending a new mail using EWS API.

BElow is my code

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();





/当我点击邮件中的批准链接时,它会打开一封新邮件一个主题'离开'。我怎样才能使这个主题只读,以便发送者不能更改它。

另外只有发送按钮才能启用。



请帮助 urgent

推荐答案

我这个问题没有与交换Web服务 [ ^ ]。



你需要意识到的是,EWS只不过是一个可以帮助你在Exchange Server中实现某些功能的API。



除此之外,你所期望的甚至不是Exchange Server的一部分,而是RFI中电子邮件消息的定义。



Every发送的电子邮件(无论是第一个,回复还是转发)被视为新邮件。它只是邮件服务器,如Exchange Server,它可以跟踪和跟踪消息,将它们视为回复/转发。



另一个因素是电子邮件您用来回复/转发邮件的客户端。即使有(或者是)对标题的支持可以定义您期望的内容,它也需要由所有电子邮件客户端实现,以了解所请求的内容。
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.


这篇关于如何使主题行只读,在使用EWS API发送邮件时禁用回复全部,转发按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆