G
Guest
Hello,
I have Asp.net 2.0 app that needs to send an email. It works fine when the
app tries to send inside of the network, but I can’t send email outside.
Does anyone know how I can resolve the problem? My code is as follows:
Dim objMail As New System.Net.Mail.MailMessage
'populage info
objMail.From = New MailAddress(“[email protected]â€)
objMail.To.Add(“[email protected]â€)
objMail.Subject = “testâ€
objMail.Body = “Test Mailâ€
objMail.IsBodyHtml = True
Dim smtp As New
SmtpClient(Configuration.WebConfigurationManager.AppSettings("defaultServer"))
smtp.Send(objMail)
Thank you very much for your advice.
Chieko
I have Asp.net 2.0 app that needs to send an email. It works fine when the
app tries to send inside of the network, but I can’t send email outside.
Does anyone know how I can resolve the problem? My code is as follows:
Dim objMail As New System.Net.Mail.MailMessage
'populage info
objMail.From = New MailAddress(“[email protected]â€)
objMail.To.Add(“[email protected]â€)
objMail.Subject = “testâ€
objMail.Body = “Test Mailâ€
objMail.IsBodyHtml = True
Dim smtp As New
SmtpClient(Configuration.WebConfigurationManager.AppSettings("defaultServer"))
smtp.Send(objMail)
Thank you very much for your advice.
Chieko