Author: Scitz0 | Posted on: 8/20/2009 3:46:52 PM | Views : 272

 Hi,
I have a problem sending email with my asp.net site. I can send one or two emails just fine but then out of nowhere I get "Service not available, closing transmission channel. The server response was: mxf2.bahnhof.se Error: timeout exceeded". Then the next time it could work again or not, very random.
web.config:
<system.net>
  <mailSettings>
    <smtp deliveryMethod="Network" from="my@email.se">
      <network host="mail2.bahnhof.se" password="xxxxxxxx" userName="xxxxxxxx" />
    </smtp>
  </mailSettings>
</system.net>
The code that does the actual sending:
protected void sendmail(object sender, System.EventArgs e) { lblMsg.Visible = true; lblMsg.Text = ""; ...

Go to the complete details ...