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