D
David Lozzi
Howdy,
I'm new to .Net 2.0... Getting
"System.Net.Mail.SmtpException: The operation has timed out"
on this script at the smtpClient.Send(msg) line
Dim msg As New MailMessage
msg.From = New MailAddress(ConfigurationManager.AppSettings("ErrorEmailFrom")) 'set to (e-mail address removed)
msg.To.Add(ConfigurationManager.AppSettings("ErrorEmailTo")) 'just my email address
msg.Subject = "Subject Text"
msg.IsBodyHtml = True
msg.Body = "<font face='arial'>This is a test</font>"
Dim smtpClient As New SmtpClient
smtpClient.Host = ConfigurationManager.AppSettings("SMTPServer") 'the Ip is my local workstation. I can send emails fine from my .net 1.1 web applications. Tried with 127.0.0.1, my workstation IP and server IP
smtpClient.Send(msg)
All of the ConfigurationManager lines I tried hardcoding the values in with no avail.
Thanks!!
I'm new to .Net 2.0... Getting
"System.Net.Mail.SmtpException: The operation has timed out"
on this script at the smtpClient.Send(msg) line
Dim msg As New MailMessage
msg.From = New MailAddress(ConfigurationManager.AppSettings("ErrorEmailFrom")) 'set to (e-mail address removed)
msg.To.Add(ConfigurationManager.AppSettings("ErrorEmailTo")) 'just my email address
msg.Subject = "Subject Text"
msg.IsBodyHtml = True
msg.Body = "<font face='arial'>This is a test</font>"
Dim smtpClient As New SmtpClient
smtpClient.Host = ConfigurationManager.AppSettings("SMTPServer") 'the Ip is my local workstation. I can send emails fine from my .net 1.1 web applications. Tried with 127.0.0.1, my workstation IP and server IP
smtpClient.Send(msg)
All of the ConfigurationManager lines I tried hardcoding the values in with no avail.
Thanks!!