I'm having problem in email service,When i tried send a bulk mail from my web page, it gives the following error "Unable to read data from the transport connection: net_io_connectionclosed" . I tried in many ways to correct the problem by changing
the config file email settings & IIS -> SMTP Setting and all.. Still now i have the same problem.. If Anyone know the solution for the above problem, please let me know...
Error Image
---------------
My coding for sending mail
---------------------------------------
Private Sub callmail(ByVal toadd As String, ByVal f As Integer)
Dim msg As New MailMessage()
Dim urlpath As String
msg.From = New MailAddress(ConfigurationManager.AppSettings("DefaultMail"))
msg.to.add(New MailAddress(ConfigurationManager.AppSettings("DefaultToMail")))
msg.Bcc.Add(toadd)
msg.Subject = txtsub.text
msg.Body = txtmsg.text
msg.IsBodyHtml = True '.BodyFormat = MailFormat.Html
Dim smpt As New System.Net.Mail.SmtpClient(ConfigurationManager.AppSettings("DefaultSMTP"))
smpt.ServicePoint.MaxIdleTime = 1
smpt.ServicePoint.ConnectionLimit = 1
smpt.Send(msg)
'Response.write (txtmsg.text)
End Sub
suresh@net
Member
6 Points
26 Posts
Help : Unable to read data from the transport connection: net_io_connectionclosed
Apr 08, 2009 11:35 AM|LINK
Hi all,
I'm having problem in email service,When i tried send a bulk mail from my web page, it gives the following error "Unable to read data from the transport connection: net_io_connectionclosed" . I tried in many ways to correct the problem by changing the config file email settings & IIS -> SMTP Setting and all.. Still now i have the same problem.. If Anyone know the solution for the above problem, please let me know...
Error Image
---------------
My coding for sending mail
---------------------------------------
Private Sub callmail(ByVal toadd As String, ByVal f As Integer)
Dim msg As New MailMessage()
Dim urlpath As String
msg.From = New MailAddress(ConfigurationManager.AppSettings("DefaultMail"))
msg.to.add(New MailAddress(ConfigurationManager.AppSettings("DefaultToMail")))
msg.Bcc.Add(toadd)
msg.Subject = txtsub.text
msg.Body = txtmsg.text
msg.IsBodyHtml = True '.BodyFormat = MailFormat.Html
Dim smpt As New System.Net.Mail.SmtpClient(ConfigurationManager.AppSettings("DefaultSMTP"))
smpt.ServicePoint.MaxIdleTime = 1
smpt.ServicePoint.ConnectionLimit = 1
smpt.Send(msg)
'Response.write (txtmsg.text)
End Sub
Thanks in advance
Suresh..
Smtp Close Email