简体   繁体   English

使用 Exchange Web 服务获取电子邮件附件的服务器 URL

[英]Get Server URL of an Email Attachment using Exchange Web Services

I'm developing an app that deals with emails.我正在开发一个处理电子邮件的应用程序。 What I need is to get the URL of the location the attachment is stored on the exchange server.我需要的是获取附件存储在交换服务器上的位置的 URL。 I can't download the attachment to my local machine so the attachment has to be accessed on the exchange server.我无法将附件下载到本地计算机,因此必须在交换服务器上访问附件。

Is this possible?这可能吗?

I have looked online but can't seem to find anything.我在网上查过,但似乎找不到任何东西。

With EWS no there is no URL to download an Attachment directly you need to know the AttachmentId (generally you would get this by using the GetItem operation) then you can use the GetAttachment operation to get the contents of the attachment (which is a Base64 Stream).使用 EWS 没有直接下载附件的 URL,您需要知道 AttachmentId(通常您可以通过使用 GetItem 操作来获得它)然后您可以使用 GetAttachment 操作来获取附件的内容(这是一个 Base64 流)。 see https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getattachment-operation请参阅https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getattachment-operation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Exchange Web服务从Exchange下载附件 - Download attachment from Exchange using Exchange Web Services 使用包含主体的URL的Exchange Web服务器发送电子邮件 - send email using exchange web server with body contains URL 如何使用Exchange Web Services在C#中更改电子邮件主题 - How to change email subject in C# using Exchange Web Services 如何通过电子邮件在交换服务器上发送.zip附件? - How to send .zip in attachment by email on exchange server? 使用Exchange Web服务检索电子邮件并将其放入数据网格 - Retrieve email with exchange web services and put it in a datagrid 使用交换Web服务获取日历项目所需的参与者? C# - Using exchange web services to get the required attendees of a calendaritem? c# 如何使用ASP.NET中的Exchange Web服务下载未读电子邮件附件? - How to download unread email attachment using Exchange web service in ASP.NET? EWS(Exchange Web服务)-向约会添加内联附件 - EWS (Exchange Web Services) - Add inline attachment to appointment 使用不带附件的 Exchange Web 服务获取 Email 消息,使用 C#(在 UiPath 中) - Get Email Message using Exchange webservices without attachment, using C# (in UiPath) 如何使用Exchange Web服务(EWS)API通过共享邮箱发送电子邮件 - How to send email via a Shared MailBox using Exchange Web Services (EWS) API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM