Last post Feb 09, 2011 05:56 AM by Saad Bin Saulat
Oct 29, 2010 09:43 AM|rookie12ww|LINK
I Created a contact page for my web site. I have a name field, email address field, subject field and a message field. I have a reset button and a submit button at the bottom of the fields. I am looking for a VBScript to make the about fields send the
message to my email address from my website. Can anyone supply me with that script or point me in the right direction to find the script?
Oct 29, 2010 03:22 PM|johnyM456|LINK
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim Dest As New System.Net.Mail.MailAddress("firstname.lastname@example.org")
Dim msg As New System.Net.Mail.MailMessage
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Host = "smtp.mydomain.com"
.Body = txtBody.text
.From = New Net.Mail.MailAddress(txtMailAdress.Text)
.Priority = Net.Mail.MailPriority.High
.Subject = txtSubject.Text
.IsBodyHtml = True
Nov 03, 2010 10:03 AM|rookie12ww|LINK
Wonderful! thank you so much.
Dec 29, 2010 10:32 PM|michaeldy|LINK
Thank you for your code that you've send me today.... It work perfectly after a few adjustments wich is normal.
Hope they'll give you another star...
Feb 09, 2011 05:56 AM|Saad Bin Saulat|LINK
Complete code to send email from vb.net application is available at: