简体   繁体   English

在 c# 中使用 Exchange ActiveSync

[英]using Exchange ActiveSync in c#

I am trying to use a work email to send confirmation emails programatically in a web app.我正在尝试使用 email 在 web 应用程序中以编程方式发送确认电子邮件。 The mail server is Exchange Server 2007 SP3.邮件服务器是 Exchange Server 2007 SP3。

I don't have acces to its configuration and it doesn't seem to implement EWS API.我无法访问它的配置,而且它似乎没有实现 EWS API。

To give you an example, this is how I the email in order to acces the account on different mobile app clients.举个例子,这就是我如何使用 email 来访问不同移动应用程序客户端上的帐户。

Note that `Domain\Username" input requires only the username, without the domain name.请注意,“域\用户名”输入只需要用户名,不需要域名。

在此处输入图像描述

This uses Exchange ActiveSync API.这使用 Exchange ActiveSync API。 Is there a way to use this API to send emails?有没有办法使用这个 API 发送电子邮件?

All the available resources that I gathered are using EWS API so they aren't much of an use.我收集的所有可用资源都在使用 EWS API,所以它们没有多大用处。

One of the reasons you're finding mostly EWS information is that EAS was a major pain in the [well, you know].您发现主要是 EWS 信息的原因之一是 EAS 是 [嗯,你知道] 的主要痛苦。

There's very detailed information, even with .NET code, but it'll require some work on your part.有非常详细的信息,即使是 .NET 代码,但它需要你做一些工作。 With a bit of patience, you'll get there.只要有一点耐心,你就会到达那里。

Take a look at " Implementing an Exchange ActiveSync client: the transport mechanism " which has some .NET examples.查看“ 实现 Exchange ActiveSync 客户端:传输机制”,其中包含一些 .NET 示例。 The command you need to implement is the SendMail command, detailed on page 49 of the specification .您需要实现的命令是SendMail命令,详见规范的第 49 页 Exchange 2007 SP3 uses version 12.1 of the protocol. Exchange 2007 SP3 使用该协议的 12.1 版。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM