如果指定了多个收件人,则使用 System.Net.Mail.SmtpClient.Send() 发送多少封邮件?

发布于 2024-12-07 11:10:43 字数 178 浏览 3 评论 0原文

我有一些代码使用 System.Net.Mail.SmtpClient.Send 从我维护的软件发送数据。我们根据发送的数据量付费,因此确定最具成本效益的信息分发方式至关重要。

如果我指定多个收件人,我认为该软件将为每个收件人传输一封电子邮件是否正确?即,如果每封电子邮件为 1MB 并且我有三个收件人,我会发送 3MB 吗?

I have some code which uses System.Net.Mail.SmtpClient.Send to send data from a piece of software I maintain. We're charged on the amount of data we send so it's crucial that we identify the most cost effective way to distribute the information.

If I specify multiple recipients, am I right in thinking the software would be transmitting one email per recipient? i.e. if each email was 1MB and I had three recipients, I'd be sending 3MB?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我只土不豪 2024-12-14 11:10:43

通常,当您发送一封包含多个收件人的邮件时,您的客户会向您的提供商发送一封电子邮件,该提供商负责向每个收件人发送一封邮件...
如果您想确定,请使用 WireShark 监控您使用的 SMTP 端口并检查流量。

已编辑:
如果您有外部提供商,我之前的回答是正确的;如果您的公司有内部邮件服务器,情况可能会有所不同:在这种情况下,您的服务器负责发送此电子邮件,并且根据其配置(使用智能主机等...),它可以将一封电子邮件发送到外部提供商或发送多封电子邮件,每个收件人一封。
在这种情况下,您必须检查服务器的 SMTP 端口上发生了什么。

Usually when you send a mail with multiple recipients, your client sends one email to your provider and this is responsible to send one message to every recipient...
If you want to be sure, use WireShark to monitor SMTP port you use and check the traffic amount.

EDITED:
My previous answer was true if you have an external provider; situation can be different if you have an internal mail server in your company: in this case your server is responsible to send this email and, according to its configuration (using a smarthost, etc...), it could send a single email to an external provider or send multiple emails one for each recipient.
In this case you must check what happens on SMTP port of your server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文