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 Mail

Sending Mail

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomhelptutorial
5 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.
  • 4 Offline
    4 Offline
    4anusha4
    wrote on last edited by
    #1

    Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls

    A A V 3 Replies Last reply
    0
    • 4 4anusha4

      Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls

      A Offline
      A Offline
      Arindam Sinha
      wrote on last edited by
      #2

      Did you configure your SMTP server[^]?

      Regards, Arindam Sinha MyBlog - http://arindamsinha.wordpress.com/ Please give your feedback on this answer.

      1 Reply Last reply
      0
      • 4 4anusha4

        Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        How can you send an e-mail from gmail and use smtp as your local machine? that is not correct. i have answered someone with a full working code here on CP. search for a post here on cp by me and you will find the answer.

        Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        1 Reply Last reply
        0
        • 4 4anusha4

          Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          4anusha4 wrote:

          SmtpMail.SmtpServer = "localhost"; SmtpMail.Send

          Did you configured your SMTP Server Properly. Does your SMTP is localhost ? I think, you need to configure the SMTP First. SMTP Server Setup IIS 6[^] If you want to use some other SMTP Server rather than own, then you have to speified that one.

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

          4 1 Reply Last reply
          0
          • A Abhijit Jana

            4anusha4 wrote:

            SmtpMail.SmtpServer = "localhost"; SmtpMail.Send

            Did you configured your SMTP Server Properly. Does your SMTP is localhost ? I think, you need to configure the SMTP First. SMTP Server Setup IIS 6[^] If you want to use some other SMTP Server rather than own, then you have to speified that one.

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

            4 Offline
            4 Offline
            4anusha4
            wrote on last edited by
            #5

            ok thank u

            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