Author: oroborus | Posted on: 5/28/2009 7:17:51 AM | Views : 992

Hello everyone!
I have a simple contact form that I want to develop further. Basically, when the user clicks 'Submit', I want a confirmation e-mail to be sent to the e-mail address entered by user. The confirmation e-mail would be quite simple, something along the lines of "Thankyou for your e-mail, we will be in contact shortly" and perhaps a copy of what they entered into the form?
If anyone has a simple solution to this then I would be interested to know what it is! Here is my code...
 
1 <% @Import Namespace = "System.Net.Mail" %> 2 <script runat ="server"> 3 4 Sub submitQuery (Src as Object, Args as EventArgs) 5 6 Dim MailClient = new SmtpClient() 7 MailClient.Credentials = new ...

Go to the complete details ...