Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

.NET Mail forms

New Here ,
Jul 08, 2008 Jul 08, 2008
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
TOPICS
Server side applications
214
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 08, 2008 Jul 08, 2008
LATEST
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


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines