Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. contact form

contact form

Scheduled Pinned Locked Moved ASP.NET
help
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sacheesach
    wrote on last edited by
    #1

    im making a contact form in that im maling all information to the provider. but wat method i use im not getting plz help

    V 1 Reply Last reply
    0
    • S sacheesach

      im making a contact form in that im maling all information to the provider. but wat method i use im not getting plz help

      V Offline
      V Offline
      varshavmane
      wrote on last edited by
      #2

      May be u can use this : Imports System.Net.Mail

      S 1 Reply Last reply
      0
      • V varshavmane

        May be u can use this : Imports System.Net.Mail

        S Offline
        S Offline
        sacheesach
        wrote on last edited by
        #3

        i did use that but when i create my own method named as SENDMAIL it give error of namespace. should i give u code

        N V 2 Replies Last reply
        0
        • S sacheesach

          i did use that but when i create my own method named as SENDMAIL it give error of namespace. should i give u code

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Are you sure the assembly is referenced in your project?


          only two letters away from being an asset

          1 Reply Last reply
          0
          • S sacheesach

            i did use that but when i create my own method named as SENDMAIL it give error of namespace. should i give u code

            V Offline
            V Offline
            varshavmane
            wrote on last edited by
            #5

            ya u can..

            A 1 Reply Last reply
            0
            • V varshavmane

              ya u can..

              A Offline
              A Offline
              ADY007
              wrote on last edited by
              #6

              you must import "Imports.System.Web.Mail" Then use this code: Dim objEmail As New MailMessage objEmail.To = "To Email" objEmail.From = "Your Email" objEmail.Subject = "Your Subject" objEmail.Body = "Hello" objEmail.Priority = MailPriority.High objEmail.BodyFormat = MailFormat.Text SmtpMail.SmtpServer = "Your SMTP Server" Try SmtpMail.Send(objEmail) Catch exc As Exception Throw exc End Try This will help you!!

              Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups