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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. simple email program

simple email program

Scheduled Pinned Locked Moved ASP.NET
comregexhelp
9 Posts 6 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.
  • N Offline
    N Offline
    nidheeshkayal
    wrote on last edited by
    #1

    am working with a simple email program and it is showing one error, the error and code is An established connection was aborted by the software in your host machine code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body = "test"; SmtpClient smtp1 = new SmtpClient("mail.somename.com"); smtp1.Send(mmsg); i thought the reason is antivirus s/w. how can solve without making changes to antivirus

    C A N N H 6 Replies Last reply
    0
    • N nidheeshkayal

      am working with a simple email program and it is showing one error, the error and code is An established connection was aborted by the software in your host machine code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body = "test"; SmtpClient smtp1 = new SmtpClient("mail.somename.com"); smtp1.Send(mmsg); i thought the reason is antivirus s/w. how can solve without making changes to antivirus

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      Don't you think it would be nessecary to post some code? How the heck are we supose to know what you are doing to get this error? -------------------------------------------------------- Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      1 Reply Last reply
      0
      • N nidheeshkayal

        am working with a simple email program and it is showing one error, the error and code is An established connection was aborted by the software in your host machine code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body = "test"; SmtpClient smtp1 = new SmtpClient("mail.somename.com"); smtp1.Send(mmsg); i thought the reason is antivirus s/w. how can solve without making changes to antivirus

        A Offline
        A Offline
        Anil C
        wrote on last edited by
        #3

        Hi nidheesh, I think that the problem could be that your use IP address rather then name of the server and also check if config in web.config is same as Hope this helps. Still send some detials of code too. Regards, Anil C

        N 1 Reply Last reply
        0
        • N nidheeshkayal

          am working with a simple email program and it is showing one error, the error and code is An established connection was aborted by the software in your host machine code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body = "test"; SmtpClient smtp1 = new SmtpClient("mail.somename.com"); smtp1.Send(mmsg); i thought the reason is antivirus s/w. how can solve without making changes to antivirus

          N Offline
          N Offline
          nidheeshkayal
          wrote on last edited by
          #4

          hi am adding the code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body ="Yor name="+TextBox1.Text +" and "+"Pair name"+ txtPname.Text; SmtpClient smtp = new SmtpClient("192.168.0.10"); // SmtpClient smtp = new SmtpClient("mail.name.com"); smtp.Send(mmsg); -- modified at 23:00 Tuesday 21st March, 2006

          1 Reply Last reply
          0
          • A Anil C

            Hi nidheesh, I think that the problem could be that your use IP address rather then name of the server and also check if config in web.config is same as Hope this helps. Still send some detials of code too. Regards, Anil C

            N Offline
            N Offline
            nidheeshkayal
            wrote on last edited by
            #5

            thanks i changed the ip address in to server name, but unfortunately i am getting the same error message

            1 Reply Last reply
            0
            • N nidheeshkayal

              am working with a simple email program and it is showing one error, the error and code is An established connection was aborted by the software in your host machine code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body = "test"; SmtpClient smtp1 = new SmtpClient("mail.somename.com"); smtp1.Send(mmsg); i thought the reason is antivirus s/w. how can solve without making changes to antivirus

              N Offline
              N Offline
              Nagraj Naik
              wrote on last edited by
              #6

              Hi, I implemented Email sending utility in my project,code is as follow, Dim objMail As New MailMessage Dim SmtpMailCustomer As SmtpMail objMail.From = "naik_nagraj@yahoo.co.in" objMail.To = "naik_nagraj@yahoo.co.in" objMail.Subject = "Confirmation Of reservation" objMail.Body = "Thank You." objMail.BodyFormat = MailFormat.Text SmtpMailCustomer.SmtpServer = "servername i.e.(webmail.nagraj.com)" SmtpMailCustomer.Send(objMail) I hope it Will solve your problem. EACH PROBLEM HAS SOLUTION..........:rose:

              1 Reply Last reply
              0
              • N nidheeshkayal

                am working with a simple email program and it is showing one error, the error and code is An established connection was aborted by the software in your host machine code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body = "test"; SmtpClient smtp1 = new SmtpClient("mail.somename.com"); smtp1.Send(mmsg); i thought the reason is antivirus s/w. how can solve without making changes to antivirus

                H Offline
                H Offline
                HimaBindu Vejella
                wrote on last edited by
                #7

                Have u sonfigured smtp in IIS "Aim to go where U have never been B4 and Strive to achieve it" http://groups.yahoo.com/subscribe/dotnetforfreshres http://himabinduvejella.blogspot.com

                1 Reply Last reply
                0
                • N nidheeshkayal

                  am working with a simple email program and it is showing one error, the error and code is An established connection was aborted by the software in your host machine code MailMessage mmsg = new MailMessage(); mmsg.From= new MailAddress(TextBox1.Text); mmsg.To.Add("nidheeshkayal@gmail.com"); mmsg.Subject = "Perfect match"; mmsg.Body = "test"; SmtpClient smtp1 = new SmtpClient("mail.somename.com"); smtp1.Send(mmsg); i thought the reason is antivirus s/w. how can solve without making changes to antivirus

                  I Offline
                  I Offline
                  Ista
                  wrote on last edited by
                  #8

                  your SmtpClient object is closing the contection or erroring. put a try catch on it to find out why. or send it manually to the server to find out why your being disconnected 1 line of code equals many bugs. So don't write any!! -- modified at 12:21 Wednesday 22nd March, 2006

                  N 1 Reply Last reply
                  0
                  • I Ista

                    your SmtpClient object is closing the contection or erroring. put a try catch on it to find out why. or send it manually to the server to find out why your being disconnected 1 line of code equals many bugs. So don't write any!! -- modified at 12:21 Wednesday 22nd March, 2006

                    N Offline
                    N Offline
                    nidheeshkayal
                    wrote on last edited by
                    #9

                    hi thanks,

                    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