.NET Best Method to Send Email (System.Net.Mail has issues)

后端 未结 7 1039
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 19:17

This seems to be pretty straight forward. I need to send email from some ASP.NET applications. I need to do this consistently without strange errors and without CPU utilizat

7条回答
  •  醉话见心
    2020-12-14 19:39

    I faced the same CPU utilization problem with the settings described. I ended up opening a ticket with Microsoft to determine the cause of the problem. The CPU utilization problem lies in the ServicePoint class. Internally in the ServicePoint class, there is a timer that runs every (MaxIdleTime/2) milliseconds. See the problem? By changing the MaxIdleTime value to 2, the CPU utilization will drop down to normal levels.

提交回复
热议问题