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("Erro rEmailFrom")) 'set to er***@delphi-ts.com
msg.To.Add(ConfigurationManager.AppSettings("Error EmailTo")) '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!!
--
David Lozzi
dlozzi@(remove)delphi-ts.com
www.delphi-ts.com