本文介绍了以编程方式获取域的SMTP服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 有没有办法从域获取主交换smtp服务器,例如Active Directory? 我开发了一个应该发送一些电子邮件的软件,我们运行这个使用混合版本的Exchange Server在许多不同域上的软件,但我无法弄清楚如何自动获取发送电子邮件时使用的服务器。 发送电子邮件的代码使用SmtpClient类C#。 提前谢谢。解决方案 Is there a way to get the primary exchange smtp server for a domain, from for example Active Directory?I have developed a software that is supposed to send some e-mails, we run this software on a number of different domains with mixed versions of Exchange Server, but i cant really figure out how to automagicaly get what server to use when sending emails.The code that sends Emails use the SmtpClient class in C#.Thank you in advance. 解决方案 这篇关于以编程方式获取域的SMTP服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!