Author: MGBA | Posted on: 5/28/2010 10:11:00 AM | Views : 437

Hello,
I've created one contact us form in that form I've used following code for sending mail
<script runat="server"> Protected Sub SubmitForm_Click(ByVal sender As Object, ByVal e As System.EventArgs) If Not Page.IsValid Then Exit Sub Dim SendResultsTo As String = "sendingto@gmail.com" Dim smtpMailServer As String = "mail.xyz.info" Dim smtpUsername As String = "abc@xyz.info" Dim smtpPassword As String = "ktyty" Dim MailSubject As String = "Form Results" Try Dim txtQ As TextBox = Me.FormContent.FindControl("TextBoxQ") If txtQ IsNot Nothing Then Dim ans As String = ViewState("hf1") If ans.ToLower <> txtQ.Text.ToLower Or ans.ToUpper <> txtQ.Te ...

Go to the complete details ...