仅使用交换服务器发送电子邮件 [英] Send an email using exchange server ONLY

查看:69
本文介绍了仅使用交换服务器发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用公司Exchange Server在C#项目中发送电子邮件.

I need to send an email in my C# project using my companies Exchange Server.

由于有人使用自托管服务器从我的公司发送了数千封电子邮件,因此不尝试使用不使用Exchange Server公司发送电子邮件的任何尝试都会被压制.

Because someone sent out thousands of Emails from my company using a self hosted server, any attempts to not use the company Exchange Server to send the email will be squished.

我想我需要创建一个Active Directory用户来执行此操作...但是要使用什么代码?如何发送?

I imagine I am going to need to get an Active Directory user created to do this... but what code to use? How to do the sending?

推荐答案

您可以使用.Net的

You can send email through Exchange using SMTP with .Net's SmtpClient class.
You will need a login for the server.

这篇关于仅使用交换服务器发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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