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. Sending email message from asp.net webform

Sending email message from asp.net webform

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
9 Posts 3 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.
  • A Offline
    A Offline
    anujose
    wrote on last edited by
    #1

    How can i send an emailmesssage from my webform

    S V 2 Replies Last reply
    0
    • A anujose

      How can i send an emailmesssage from my webform

      S Offline
      S Offline
      swguy23
      wrote on last edited by
      #2

      It's very easy to send and receve email in asp 2.0 first include following files in ur code filed 1)Imports System.Web.Mail 2)Imports System.Net You can send mail in following way ' Creating the Mail Message Dim objMailMessage As MailMessage objMailMessage = New MailMessage objMailMessage.From = "youremailaddress@yahoo.com" objMailMessage.To = custemail.ToString objMailMessage.Subject = "Subject Heading" objMailMessage.Body = "Thank you (any Description in body)" objMailMessage.BodyFormat = MailFormat.Html ' Sending Mail Message SmtpMail.Send(objMailMessage) 'And also set ur Web.config file by defining your network host ipaddress, username and password Regards, Vidhin Shah

      A 1 Reply Last reply
      0
      • S swguy23

        It's very easy to send and receve email in asp 2.0 first include following files in ur code filed 1)Imports System.Web.Mail 2)Imports System.Net You can send mail in following way ' Creating the Mail Message Dim objMailMessage As MailMessage objMailMessage = New MailMessage objMailMessage.From = "youremailaddress@yahoo.com" objMailMessage.To = custemail.ToString objMailMessage.Subject = "Subject Heading" objMailMessage.Body = "Thank you (any Description in body)" objMailMessage.BodyFormat = MailFormat.Html ' Sending Mail Message SmtpMail.Send(objMailMessage) 'And also set ur Web.config file by defining your network host ipaddress, username and password Regards, Vidhin Shah

        A Offline
        A Offline
        anujose
        wrote on last edited by
        #3

        where and how i will define in web config my network host ip address,username and password.

        S 1 Reply Last reply
        0
        • A anujose

          where and how i will define in web config my network host ip address,username and password.

          S Offline
          S Offline
          swguy23
          wrote on last edited by
          #4

          (your network host ip address and username and password)

          A 2 Replies Last reply
          0
          • S swguy23

            (your network host ip address and username and password)

            A Offline
            A Offline
            anujose
            wrote on last edited by
            #5

            in webconfig file how i will define that.can u send that coding

            1 Reply Last reply
            0
            • S swguy23

              (your network host ip address and username and password)

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

              my code is like this MailMessage mail=new MailMessage(); mail.To ="anu@gmail.com"; mail.From ="anu2@gmail.com"; mail.Subject = "your subject"; mail.Body = "your subject"; SmtpMail.Send(mail); it's executing.but i am not getting msg in my mail?what is the problem

              S 1 Reply Last reply
              0
              • A anujose

                my code is like this MailMessage mail=new MailMessage(); mail.To ="anu@gmail.com"; mail.From ="anu2@gmail.com"; mail.Subject = "your subject"; mail.Body = "your subject"; SmtpMail.Send(mail); it's executing.but i am not getting msg in my mail?what is the problem

                S Offline
                S Offline
                swguy23
                wrote on last edited by
                #7

                hi i tried to paste the code but i dont know why its not displaying here so i have mailed the code to ur email address. so read that code and copy paste that code in ur web.config file Regards, Vidhin Shah

                A 1 Reply Last reply
                0
                • S swguy23

                  hi i tried to paste the code but i dont know why its not displaying here so i have mailed the code to ur email address. so read that code and copy paste that code in ur web.config file Regards, Vidhin Shah

                  A Offline
                  A Offline
                  anujose
                  wrote on last edited by
                  #8

                  i didn't get mail in my email why?..............

                  1 Reply Last reply
                  0
                  • A anujose

                    How can i send an emailmesssage from my webform

                    V Offline
                    V Offline
                    Vasudevan Deepak Kumar
                    wrote on last edited by
                    #9

                    http://www.systemwebmail.com/[^] http://www.systemnetmail.com/[^]

                    Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                    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