EWS托管api:使用SMTP路由发送电子邮件 [英] EWS managed api : Send Email using SMTP routing
问题描述
Exchange托管API在发送电子邮件时是否使用SMTP作为默认路由。
Does Exchange managed api uses SMTP as a default routing while sending an email.
发送电子邮件时使用 的连接机制是什么? (安全或匿名)
What is the connection mechanism used when sending an email ? ( Secured or Anonymous)
如何在发送电子邮件之前将RoutingType设置为SMTP。
。 EmailMessage message = new EmailMessage (服务); <跨度>&NBSP; // service 是 ExchangeService   ;&NBSP;&NBSP;
.EmailMessage message = new EmailMessage(service); // service is an instance of ExchangeService
message.Subject = " SMTP是通过SMTP发送的 " ;
message.Body = "示例应用程序已写成";
message.Body = " The sample application has been written " ;
message.ToRecipients.Add(" agent0999@yahoo.com" ); &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
message.ToRecipients.Add("agent0999@yahoo.com");
message.Send();
推荐答案
EWS托管API通过Exchange完成所有工作。您无法通过SMTP使用EWS托管API发送邮件。您可以使用标准.NET System.Net.MailMessage 类通过SMTP发送邮件。
The EWS Managed API does everything via Exchange. You cannot send a message via SMTP with the EWS Managed API. You can use the standard .NET System.Net.MailMessage class to send messages via SMTP.
这篇关于EWS托管api:使用SMTP路由发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!