Send Email Timeout...

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!!
 
F

furiousmojo

Did you install a firewall recently? WinXP firewall turned on?

Can you telnet localhost 25? What happens?
 
D

David Lozzi

I cannot telnet localhost, as a matter of fact, i cannot telnet to a known
mail server on port 25. I'm behind ISA 2004 and the rules are open for this
traffic. I don't even see the traffic hitting ISA. Grrrr...... it appears my
issue is outside ASP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SmtpClient Email Error 1
Trying to send an email 1
emailsender 0
Email problem 3
Send email in Asp.Net 2.0 8
send email question 9
Executing JavaScript while sending email? 2
Help with Email Code 2

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top