smtp.send - mail error

son

Regular
Joined
Feb 21, 2004
Messages
67
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:
Visual Basic:
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....:)
 
thank you..;)

hi.. thanks.. for your reply..i shall check it out..
thanks once again..;)
 
Back
Top