Sending authomatic conformation e-mail

  • Thread starter Thread starter vlad
  • Start date Start date
V

vlad

I have registration form. After user fills the form he clicks submit button.
On this click I want to create function that will send automatic e-mail to
that user.
Thanks
 
Just make sure you use the reference to System.Web.Mail
and this is the exact code I used. It's pretty much the
same as the other posts, but figured you may find it
helpful

m.To = tbTo.Text
m.From = tbFrom.Text
m.Subject = tbSubject.Text
m.Body = rtb.Text
System.Web.Mail.SmtpMail.Send(m)
Me.Dispose()
 
Back
Top