473,473 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help! SMTP Exception Error in ASP 2.0 Email Form

I keep getting the following error on an asp form I have on my site. I know
the smtp settings are correct, because if I take out the user fields (i.e.
name, weight and assign a text string in code the email is processed.

Protected Sub SendEmail_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles SendEmail.Click
Const ToAddress As String = ab*@abc.com
Dim mm As New Net.Mail.MailMessage(ab*@abc.com, ToAddress)
mm.Subject = "Parts Request"
mm.Body = "Body" -----------------If I use mm.body = name.text I get the
timeout error
mm.Body = "weight"
mm.IsBodyHtml = False
Dim smtp As New Net.Mail.SmtpClient
smtp.Send(mm)
End Sub
Is it possible that it takes longer to process text boxes, therefore some
code needs to be added to prevent the timeout? If so, can someone help me
with the code snippet?
Here is the Error:

Service not available, closing transmission channel. The server response
was: Command timeout, closing transmission channel
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpException: Service not available,
closing transmission channel. The server response was: Command timeout,
closing transmission channel

Source Error:

Line 20:
Line 21: '(4) Send the MailMessage (will use the Web.config
settings)
Line 22: smtp.Send(mm)
Line 23: End Sub
Line 24:
Sep 11 '07 #1
4 2172
On Sep 11, 10:46 pm, "Bgreer5050" <bgreer5...@yahoo.comwrote:
I keep getting the following error on an asp form I have on my site. I know
the smtp settings are correct, because if I take out the user fields (i.e.
name, weight and assign a text string in code the email is processed.

Protected Sub SendEmail_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles SendEmail.Click
Const ToAddress As String = a...@abc.com
Dim mm As New Net.Mail.MailMessage(a...@abc.com, ToAddress)
mm.Subject = "Parts Request"
mm.Body = "Body" -----------------If I use mm.body = name.text I get the
timeout error
mm.Body = "weight"
mm.IsBodyHtml = False
Dim smtp As New Net.Mail.SmtpClient
smtp.Send(mm)
End Sub

Is it possible that it takes longer to process text boxes, therefore some
code needs to be added to prevent the timeout? If so, can someone help me
with the code snippet?

Here is the Error:

Service not available, closing transmission channel. The server response
was: Command timeout, closing transmission channel
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpException: Service not available,
closing transmission channel. The server response was: Command timeout,
closing transmission channel

Source Error:

Line 20:
Line 21: '(4) Send the MailMessage (will use the Web.config
settings)
Line 22: smtp.Send(mm)
Line 23: End Sub
Line 24:
Try to check the event log to see if there are any hints on that

Sep 11 '07 #2
Ok. This is a silly question....where is the event log? My site is hosted
offsite on a IIS server. Is it the same thing as the Stack Trace?

Thanks

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@x40g2000prg.googlegro ups.com...
On Sep 11, 10:46 pm, "Bgreer5050" <bgreer5...@yahoo.comwrote:
>I keep getting the following error on an asp form I have on my site. I
know
the smtp settings are correct, because if I take out the user fields
(i.e.
name, weight and assign a text string in code the email is processed.

Protected Sub SendEmail_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles SendEmail.Click
Const ToAddress As String = a...@abc.com
Dim mm As New Net.Mail.MailMessage(a...@abc.com, ToAddress)
mm.Subject = "Parts Request"
mm.Body = "Body" -----------------If I use mm.body = name.text I get the
timeout error
mm.Body = "weight"
mm.IsBodyHtml = False
Dim smtp As New Net.Mail.SmtpClient
smtp.Send(mm)
End Sub

Is it possible that it takes longer to process text boxes, therefore some
code needs to be added to prevent the timeout? If so, can someone help
me
with the code snippet?

Here is the Error:

Service not available, closing transmission channel. The server response
was: Command timeout, closing transmission channel
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpException: Service not available,
closing transmission channel. The server response was: Command timeout,
closing transmission channel

Source Error:

Line 20:
Line 21: '(4) Send the MailMessage (will use the Web.config
settings)
Line 22: smtp.Send(mm)
Line 23: End Sub
Line 24:

Try to check the event log to see if there are any hints on that

Sep 12 '07 #3
What do you store on name.text? It's a simple string?

I would try the following:

- Hardcode what you typed on the text box and set it as a hardcode
string, did you get an error?

- Pass what you typed on the textbox to an string variable, and assign it
to the body, did you get the error?

This tests are just to delimit where can be located the failure. It's
quite strange.

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------


"Bgreer5050" wrote:
I keep getting the following error on an asp form I have on my site. I know
the smtp settings are correct, because if I take out the user fields (i.e.
name, weight and assign a text string in code the email is processed.

Protected Sub SendEmail_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles SendEmail.Click
Const ToAddress As String = ab*@abc.com
Dim mm As New Net.Mail.MailMessage(ab*@abc.com, ToAddress)
mm.Subject = "Parts Request"
mm.Body = "Body" -----------------If I use mm.body = name.text I get the
timeout error
mm.Body = "weight"
mm.IsBodyHtml = False
Dim smtp As New Net.Mail.SmtpClient
smtp.Send(mm)
End Sub
Is it possible that it takes longer to process text boxes, therefore some
code needs to be added to prevent the timeout? If so, can someone help me
with the code snippet?
Here is the Error:

Service not available, closing transmission channel. The server response
was: Command timeout, closing transmission channel
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpException: Service not available,
closing transmission channel. The server response was: Command timeout,
closing transmission channel

Source Error:

Line 20:
Line 21: '(4) Send the MailMessage (will use the Web.config
settings)
Line 22: smtp.Send(mm)
Line 23: End Sub
Line 24:
Sep 12 '07 #4
On Sep 12, 2:28 am, "Bgreer5050" <bgreer5...@yahoo.comwrote:
Ok. This is a silly question....where is the event log? My site is hosted
offsite on a IIS server. Is it the same thing as the Stack Trace?

Thanks

"Alexey Smirnov" <alexey.smir...@gmail.comwrote in message

news:11*********************@x40g2000prg.googlegro ups.com...
On Sep 11, 10:46 pm, "Bgreer5050" <bgreer5...@yahoo.comwrote:
I keep getting the following error on an asp form I have on my site. I
know
the smtp settings are correct, because if I take out the user fields
(i.e.
name, weight and assign a text string in code the email is processed.
Protected Sub SendEmail_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles SendEmail.Click
Const ToAddress As String = a...@abc.com
Dim mm As New Net.Mail.MailMessage(a...@abc.com, ToAddress)
mm.Subject = "Parts Request"
mm.Body = "Body" -----------------If I use mm.body = name.text I get the
timeout error
mm.Body = "weight"
mm.IsBodyHtml = False
Dim smtp As New Net.Mail.SmtpClient
smtp.Send(mm)
End Sub
Is it possible that it takes longer to process text boxes, therefore some
code needs to be added to prevent the timeout? If so, can someone help
me
with the code snippet?
Here is the Error:
Service not available, closing transmission channel. The server response
was: Command timeout, closing transmission channel
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: Service not available,
closing transmission channel. The server response was: Command timeout,
closing transmission channel
Source Error:
Line 20:
Line 21: '(4) Send the MailMessage (will use the Web.config
settings)
Line 22: smtp.Send(mm)
Line 23: End Sub
Line 24:
Try to check the event log to see if there are any hints on that- Hide quoted text -

- Show quoted text -
Control Panel - Administrative Tools - Event Viewer

Sep 12 '07 #5

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

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
9
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
4
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
0
by: tbatwork828 | last post by:
If you were like me trying to figure out how to launch context sensitive help topic by the context id, here is the link: http://weblogs.asp.net/kencox/archive/2004/09/12/228349.aspx and if...
5
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
9
by: JJ | last post by:
Do you all use HTML help workshop to create your help system. I am finding it quite clumsy to use. Mayeb because I am not used to using it. Do any of you use any other techniques to create help...
4
by: Fred Flintstone | last post by:
This one baffles me. I'm using VS.Net 2005 and write desktop apps that need built in help. So logically, I figure maybe VS has a help system component built in so I search the help. Hey! ...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.