开发者

Test c# email sending speed

开发者 https://www.devze.com 2023-03-11 16:22 出处:网络
I have a c# applicationthat sends an email out to all employees in my database (not XPmail.) I have over 300 employees and I was told 开发者_StackOverflow社区it is a little slow. IS there anyway I ca

I have a c# application that sends an email out to all employees in my database (not XPmail.)

I have over 300 employees and I was told 开发者_StackOverflow社区it is a little slow. IS there anyway I can test the speed of CC'ing 300 employees and sending it out? I cant time stamp each email since its all carbon copied after the read loop in the database.


The first thing to check is whether you're sending 300 e-mails to 1 person each or 1 e-mail bcc'd (not to or cc'd, bcc'd) to 300 people. If the former, you really should do the latter. Even better, you should have a distribution list set up on your server for this.

Regardless, the problem is almost certainly at your e-mail (smtp) server. There won't be anything you can change in your code to make it faster, and using a different language or platform won't help — it's all up to the smtp server and the bandwidth available.


Sending a single email with many CC's or BCC's is exactly that - a single email. From that point, it's up to the mail server to dispatch the individual messages. Although you likely have little control over the mail software itself, it should always be faster than queuing up 300 individual messages.

0

精彩评论

暂无评论...
验证码 换一张
取 消