473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Send Email Timeout...

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
Jul 6 '06 #1
2 5245
Did you install a firewall recently? WinXP firewall turned on?

Can you telnet localhost 25? What happens?

David Lozzi wrote:
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
------=_NextPart_000_0046_01C6A124.4F779750
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 3287

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>Howdy,</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>I'm new to .Net 2.0...
Getting </FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2><BR><FONT
face="Courier New">"System.Net.Mail.SmtpException: The operation has timed
out"</FONT</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>on this script at the
smtpClient.Send(msg) line</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV>
<P><FONT face="Courier New" color=#000080 size=2>Dim msg As New
MailMessage</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.From = New
MailAddress(ConfigurationManager.AppSettings("Erro rEmailFrom"))&nbsp;&nbsp;&nbsp;&nbsp;
<FONT color=#008000>'set to </FONT></FONT><A
href="mailto:er***@delphi-ts.com"><FONT face="Courier New" color=#008000
size=2>er***@delphi-ts.com</FONT></A></P>
<P><FONT face="Courier New" color=#000080
size=2>msg.To.Add(ConfigurationManager.AppSettings ("ErrorEmailTo"))&nbsp;&nbsp;&nbsp;
<FONT color=#008000>'just my email address</FONT></FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.Subject = "Subject
Text"</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.IsBodyHtml =
True</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.Body = "&lt;font
face='arial'&gt;This is a test&lt;/font&gt;"</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>Dim smtpClient As New
SmtpClient</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>smtpClient.Host =
ConfigurationManager.AppSettings("SMTPServer")&nbs p;&nbsp;&nbsp; <FONT
color=#008000>'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</FONT></FONT></P>
<P><FONT face="Courier New" color=#000080
size=2>smtpClient.Send(msg)</FONT></P></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>All of the
ConfigurationManager lines I tried hardcoding the values in with no
avail.</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>Thanks!!</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT><BR><FONT
face="Trebuchet MS" color=#000080 size=2>-- <BR>David Lozzi<BR></FONT><A
href="mailto:dlozzi@(remove)delphi-ts.com"><FONT face="Trebuchet MS"
color=#000080 size=2>dlozzi@(remove)delphi-ts.com</FONT></A><BR><A
href="http://www.delphi-ts.com"><FONT face="Trebuchet MS" color=#000080
size=2>www.delphi-ts.com</FONT></A></DIV></BODY></HTML>

------=_NextPart_000_0046_01C6A124.4F779750--
Jul 7 '06 #2
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

--
David Lozzi
dlozzi@(remove)delphi-ts.com
www.delphi-ts.com
<fu*********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Did you install a firewall recently? WinXP firewall turned on?

Can you telnet localhost 25? What happens?

David Lozzi wrote:
>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("Err orEmailFrom")) 'set
to er***@delphi-ts.com

msg.To.Add(ConfigurationManager.AppSettings("Erro rEmailTo")) '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
------=_NextPart_000_0046_01C6A124.4F779750
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 3287

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>Howdy,</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>I'm new to .Net
2.0...
Getting </FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2><BR><FONT
face="Courier New">"System.Net.Mail.SmtpException: The operation has
timed
out"</FONT</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>on this script at the
smtpClient.Send(msg) line</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV>
<P><FONT face="Courier New" color=#000080 size=2>Dim msg As New
MailMessage</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.From = New
MailAddress(ConfigurationManager.AppSettings("Err orEmailFrom"))&nbsp;&nbsp;&nbsp;&nbsp;
<FONT color=#008000>'set to </FONT></FONT><A
href="mailto:er***@delphi-ts.com"><FONT face="Courier New" color=#008000
size=2>er***@delphi-ts.com</FONT></A></P>
<P><FONT face="Courier New" color=#000080
size=2>msg.To.Add(ConfigurationManager.AppSetting s("ErrorEmailTo"))&nbsp;&nbsp;&nbsp;
<FONT color=#008000>'just my email address</FONT></FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.Subject = "Subject
Text"</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.IsBodyHtml =
True</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>msg.Body = "&lt;font
face='arial'&gt;This is a test&lt;/font&gt;"</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>Dim smtpClient As New
SmtpClient</FONT></P>
<P><FONT face="Courier New" color=#000080 size=2>smtpClient.Host =
ConfigurationManager.AppSettings("SMTPServer")&nb sp;&nbsp;&nbsp; <FONT
color=#008000>'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</FONT></FONT></P>
<P><FONT face="Courier New" color=#000080
size=2>smtpClient.Send(msg)</FONT></P></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>All of the
ConfigurationManager lines I tried hardcoding the values in with no
avail.</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2>Thanks!!</FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2></FONT><BR><FONT
face="Trebuchet MS" color=#000080 size=2>-- <BR>David Lozzi<BR></FONT><A
href="mailto:dlozzi@(remove)delphi-ts.com"><FONT face="Trebuchet MS"
color=#000080 size=2>dlozzi@(remove)delphi-ts.com</FONT></A><BR><A
href="http://www.delphi-ts.com"><FONT face="Trebuchet MS" color=#000080
size=2>www.delphi-ts.com</FONT></A></DIV></BODY></HTML>

------=_NextPart_000_0046_01C6A124.4F779750--

Jul 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Quarco | last post by:
Hi, Quick & simple question: I have to send the next data to a socket in order to make a popup visible on a windows machine.. TITLE Title of popup TEXT Text in popup POPUP
4
by: jas | last post by:
I have a basic client/server socket situation setup....where the server accepts a connection and then waits for commands. On the client side, I create a socket, connect to the server...then I...
6
by: ra294 | last post by:
I have an ASP.Net application that sends Emails on several pages. The problem is that when the mail server is down from some reason, the SmtpMail.Send hangs the application for one minute until I...
2
by: Stanley Cheung | last post by:
Hi all, I am developing the application for send emailing list, actually, i can perform to send a email 1 by 1 and do it on aspx page. I have a enquiry that how can the application change to...
4
by: FNA access | last post by:
I have read through many posts that are relevant to my topic and have not had any success. I want to click a button on my form and send an email to a list of people I have stored in a table with...
16
by: bgreer5050 | last post by:
I have a form with the following fields: UserEmail Subject Body When the form is submitted, the email is processed fine. When I try to add another field to the mm.body (mm.Body = Body.Text...
0
by: fyitang | last post by:
On Mar 18, 1:04 am, "Henning Krause " <newsgroups_rem...@this.infinitec.dewrote: thanks Henning. i have tried this one <"test test@gmail.com">, and this worked. thank you.
9
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works...
2
by: jcrum00 | last post by:
My asp script used to be able to send email to an unlimited amount of users. But a couple weeks ago I started getting this error message "transport failed to connect to server". So I increased...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.