简体   繁体   English

smtpclient可以阻止并发登录到smtp服务器吗?

[英]could smtpclient block concurrent logins to an smtp server?

so i am developing an application where an email should be sent via smtp whenever an error occurs. 所以我正在开发一个应用程序,每当发生错误时,都应通过smtp发送电子邮件。 Problem is: what will happen if 2 or more people use the same credentials to send the email? 问题是:如果两个或两个以上的人使用相同的凭据发送电子邮件,将会发生什么? will the second request be blocked? 第二个请求会被阻止吗? I am using Smtpclient and Mail to accomplish the task - also i dispose everything once the email send and i am not using an asynchronous way to do it. 我正在使用Smtpclient和Mail来完成任务-电子邮件发送后,我也会处理所有内容,而我没有使用异步的方式来完成它。 10x! 10倍!

The answer would be based on your SMTP server configuration. 答案将基于您的SMTP服务器配置。 Most SMTP servers allow concurrent connections from the same user. 大多数SMTP服务器都允许来自同一用户的并发连接。 SMTP transactions can be slow - I'd recommend using a database table or system event log for error logging. SMTP事务可能很慢-我建议使用数据库表或系统事件日志进行错误记录。 You can use a solution like Splunk or Nagios to handle email notifications, outside of the scope of your application(s). 您可以使用SplunkNagios之类的解决方案来处理电子邮件通知,而不是应用程序的范围。

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

相关问题 smtpclient不适用于Exchange服务器,但适用于smtp服务器 - smtpclient not working for exchange server but works for smtp server 从 SmtpClient 获取 SMTP 服务器问候消息 - Get SMTP server greeting message from SmtpClient MailKit.Net.Smtp.SmtpClient SMTP 服务器不支持认证 - MailKit.Net.Smtp.SmtpClient SMTP server does not support authentication .Net TcpClient和SmtpClient无法连接到我的Smtp服务器 - .Net TcpClient and SmtpClient won't connect to my Smtp server smtpclient未启动smtp流量 - smtpclient is not initiating smtp traffic smtpclient windows server 2008,此邮件服务器在尝试通过此SMTP(提交)端口发送时需要身份验证(1) - smtpclient windows server 2008, This mail server requires authentication (1) when attempting to send via this SMTP (submission) port SmtpClient.Send失败,出现System.FormatException:Smtp服务器返回无效响应 - SmtpClient.Send failing with System.FormatException: Smtp server returned an invalid response SmtpClient工作时,SmtpAppender无法通过smtp服务器发送电子邮件 - SmtpAppender fails sending Emails through smtp-server while SmtpClient works 使用 c# SmtpClient 的 Gmail SMTP 失败 - Gmail SMTP failure using c# SmtpClient SmtpClient在Google云服务器上不起作用 - SmtpClient not working on google cloud server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM