使用smtp发送邮件非常慢 [英] send mail using smtp is very slow

查看:702
本文介绍了使用smtp发送邮件非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我的网站发送了一封smtp电子邮件。我单独发送每封邮件,每封邮件大约需要6秒钟发送。它太慢了请给我解决方案

提高性能或替代快速发送邮件。

解决方案

这取决于网络速度+发送服务器加载+接收服务器负载。



要获得快速结果,请使用System.Net.Mail.SmtpClient的SendAsync()方法。它会在不到一秒的时间内发送邮件。



请点击此链接 -

http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx [ ^ ]



如果有帮助,请标记为答案。


Hi Nilesh,



您可以使用多任务线程概念发送电子邮件以提高性能。



请参阅以下链接。



http://stackoverflow.com/questions/10731747/ send-bulk-email-using-c-sharp-multithreading-concept [ ^ ]



http://www.emailarchitect.net/easendmail/kb/csharp.aspx?cat=13 [ ^ ]


您需要检查的第一件事是您是否能够快速连接到邮件服务器。



telnet到邮件服务器的端口25(您尝试发送邮件的端口)。如果需要花费太多时间,请联系管理员以获得进一步的帮助。



有很多因素可能会使邮件发送速度变慢,如防病毒程序检查或网络速度。

I send an smtp email from my web site . I send each mail individually and each message takes about 6 seconds to send. It's too slow please give me solution to
improve performace or alternative to sending mail fast.

解决方案

It depends on network speed + sending server load + receiving server load.

For fast results please use SendAsync() method of System.Net.Mail.SmtpClient. It sends mails within less than a second.

Please follow this link-
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx[^]

please mark as answer if helped.


Hi Nilesh,

You can use multitasking threading concept to sent email to improve performance.

Refer the below link for same.

http://stackoverflow.com/questions/10731747/send-bulk-email-using-c-sharp-multithreading-concept[^]

http://www.emailarchitect.net/easendmail/kb/csharp.aspx?cat=13[^]


The very first thing you need to check is that whether you are able to connect to the mail server quickly.

telnet to port 25(port which you are trying to send mail) of the mail server. If it takes too much time then contact your administrator for further help.

There are many factors which may make the mail sending bit slower like Anti-virus program checking or network speed.


这篇关于使用smtp发送邮件非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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