Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2005, 06:49 AM
Authorized User
 
Join Date: Dec 2004
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to NitinJoshi
Default Sending mail problem!!!!

sub send(Source As Object, e As EventArgs)
dim msgMail As New MailMessage
Dim strBody As String
msgMail.To="[email protected]"
msgMail.From=TextBox1.text
msgMail.BodyFormat=MailFormat.Text
msgMail.Body=TextBox2.text
SmtpMail.send(msgMail)
label2.text="Massege Sent Successfully!!!!"
end sub
-----------------------------------

this is my sub procedure..it is giving me an error...
any one solution pls..
Thanx!!!

Server Error in '/Web_Dev2/E_Mail' Application.
--------------------------------------------------------------------------------

The "SendUsing" configuration value is invalid.
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.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

Source Error:


Line 9: msgMail.BodyFormat=MailFormat.Text
Line 10: msgMail.Body=TextBox2.text
Line 11: SmtpMail.send(msgMail)
Line 12: label2.text="Massege Sent Successfully!!!!"
Line 13: end sub


Source File: E:\sta2\Web_Dev\E_Mail\WebForm1.aspx Line: 11

Stack Trace:


[COMException (0x80040220): The "SendUsing" configuration value is invalid.
]

[TargetInvocationException: Exception has been thrown by the target of an invocation
 
Old January 12th, 2005, 08:34 AM
Authorized User
 
Join Date: Nov 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to avanishp
Default

Hello Nitin

Try
SmtpMail.SmtpServer = "localhost" or
SmtpMail.SmtpServer = "127.0.0.1" before SmtpMail.send(msgMail)

Avanish

 
Old January 13th, 2005, 08:31 AM
Authorized User
 
Join Date: Dec 2004
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to NitinJoshi
Default

It worked...

the Problem was all different!!

The Code was Perfect...But it was problem in antivirus setting!!!!

Thanx For u r Reply!!!

-Nitin





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with sending e-mail Paula222 Pro PHP 1 July 27th, 2006 06:57 AM
Problem with sending mail in php Paula222 Beginning PHP 4 July 16th, 2006 03:38 PM
Problem sending SMTP mail Dsypher ASP.NET 2.0 Basics 3 February 16th, 2006 01:58 PM
Problem in sending an e-mail via ASP.NET Rashmi_Dubey ASP.NET 2.0 Basics 2 January 28th, 2006 03:36 AM
Problem with sending mail nikunjn VS.NET 2002/2003 1 January 29th, 2004 08:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.