Skip to main content
Participant
July 8, 2008
Question

.NET Mail forms

  • July 8, 2008
  • 1 reply
  • 213 views
HI all,

I have a feedback form on my website that on submission collects data in an SQL database, but I would also like this information to be sent via an email to a given address, does anyone know how to do this or can point me in the right direction.

I know how to code it in classic asp but not .net as I am new to it. Any help would be greatly appreciated as this is an urgent requirement.

thanks
This topic has been closed for replies.

1 reply

Inspiring
July 8, 2008
You could have something like

Dim objMail As MailMessage = New MailMessage(" from@domain.com ","
to@domain.com ","my subject", "my message")
Dim mailClient As New SmtpClient("mail.domain.com")
mailClient.Send(objMail)

--
Jules
http://www.charon.co.uk/products.aspx
Charon Cart
Ecommerce for ASP/ASP.NET