son Posted December 15, 2004 Posted December 15, 2004 hi i am using vb.net and i have a webfrom called mail.aspx i am trying to send a an email from the form but i get this error message The "SendUsing" configuration value is invalid. my code is as follows: imports system.web.mail Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here 'clear the message litStatus.Text = "" End Sub Private Sub butSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles butSend.Click Dim msgMail As New MailMessage 'set the message properties msgMail.From = txtFrom.Text msgMail.To = txtTo.Text msgMail.Subject = txtSubject.Text msgMail.Body = txtMessage.Text 'send the message SmtpMail.Send(msgMail) 'i get error here 'clear the textboxes txtFrom.Text = "" txtTo.Text = "" txtSubject.Text = "" txtMessage.Text = "" 'show the successs litStatus.Text = "<p>your mail has been sent</p>" End Sub can someone please tell me what i need to do in order to correct this error thanks....:) Quote
Administrators PlausiblyDamp Posted December 15, 2004 Administrators Posted December 15, 2004 If you check the link in the sticky at the top of this forum it gives you the solution to this problem. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
son Posted December 15, 2004 Author Posted December 15, 2004 thank you..;) hi.. thanks.. for your reply..i shall check it out.. thanks once again..;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.