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. General Programming
  3. C#
  4. E-mail Error

E-mail Error

Scheduled Pinned Locked Moved C#
csharpsysadminhelpquestion
17 Posts 5 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 NewToAspDotNet

    Guys, I have a simple C# app to send e-mail. bud wen i click on send mail button i get this error: Syntax error, command unrecognized. The server response was: AVG POP3 Proxy Server 7.5.494/7.5.503[269.15.8/1185]. I googled a lot bud nothin found. Somebody pls a idea?

    P Offline
    P Offline
    Paul Conrad
    wrote on last edited by
    #2

    What does the code look like that is supposed to send the email?

    "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

    N 1 Reply Last reply
    0
    • N NewToAspDotNet

      Guys, I have a simple C# app to send e-mail. bud wen i click on send mail button i get this error: Syntax error, command unrecognized. The server response was: AVG POP3 Proxy Server 7.5.494/7.5.503[269.15.8/1185]. I googled a lot bud nothin found. Somebody pls a idea?

      L Offline
      L Offline
      Laubi
      wrote on last edited by
      #3

      I guess you've already tried to disable your anti-virus software, didn't you? Just to be sure what causes the problem...

      N 1 Reply Last reply
      0
      • P Paul Conrad

        What does the code look like that is supposed to send the email?

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

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

        Paul, thanx for your response. here is my code: MailMessage mail = new MailMessage(); SmtpClient server = new SmtpClient("smtp.myserver.nl", 110); server.Credentials = new System.Net.NetworkCredential("username", "password"); mail.From = new MailAddress("kb@myserver.nl"); mail.To.Add("kb@myserver.nl"); mail.Subject = "test"; mail.Body = "mail via Time it applicatie"; //SmtpMail.SmtpServer = "smtp.myserver.nl"; try { server.Send(mail); MessageBox.Show("succesvol verzonden"); } catch (SmtpFailedRecipientException error) { MessageBox.Show(error.FailedRecipient); }

        L 1 Reply Last reply
        0
        • L Laubi

          I guess you've already tried to disable your anti-virus software, didn't you? Just to be sure what causes the problem...

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

          Hi Laubi, Yes i did. Bud i get the same issue.

          1 Reply Last reply
          0
          • N NewToAspDotNet

            Paul, thanx for your response. here is my code: MailMessage mail = new MailMessage(); SmtpClient server = new SmtpClient("smtp.myserver.nl", 110); server.Credentials = new System.Net.NetworkCredential("username", "password"); mail.From = new MailAddress("kb@myserver.nl"); mail.To.Add("kb@myserver.nl"); mail.Subject = "test"; mail.Body = "mail via Time it applicatie"; //SmtpMail.SmtpServer = "smtp.myserver.nl"; try { server.Send(mail); MessageBox.Show("succesvol verzonden"); } catch (SmtpFailedRecipientException error) { MessageBox.Show(error.FailedRecipient); }

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            uhm.. are you sure your smtp server is on 110? normal smtp-servers are on port 25. 110 is pop

            N 1 Reply Last reply
            0
            • L Lost User

              uhm.. are you sure your smtp server is on 110? normal smtp-servers are on port 25. 110 is pop

              N Offline
              N Offline
              NewToAspDotNet
              wrote on last edited by
              #7

              yes i m sure. i checked it.

              L 1 Reply Last reply
              0
              • N NewToAspDotNet

                yes i m sure. i checked it.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                so then the output AVG POP3 Proxy Server 7.5.494/7.5.503[269.15.8/1185]. comes from an smtp server with an identity-crisis?

                N 1 Reply Last reply
                0
                • L Lost User

                  so then the output AVG POP3 Proxy Server 7.5.494/7.5.503[269.15.8/1185]. comes from an smtp server with an identity-crisis?

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

                  I don't know what happend, bud i get now a another error: Failure sending mail. A connection attempt failed because the connection party did not properly responed after a period of time, or established connection failed because connected host has failed to respond. :doh:

                  L 1 Reply Last reply
                  0
                  • N NewToAspDotNet

                    I don't know what happend, bud i get now a another error: Failure sending mail. A connection attempt failed because the connection party did not properly responed after a period of time, or established connection failed because connected host has failed to respond. :doh:

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    and what happens if you change this SmtpClient server = new SmtpClient("smtp.myserver.nl", 110); to SmtpClient server = new SmtpClient("smtp.myserver.nl", 25); ?

                    N 1 Reply Last reply
                    0
                    • L Lost User

                      and what happens if you change this SmtpClient server = new SmtpClient("smtp.myserver.nl", 110); to SmtpClient server = new SmtpClient("smtp.myserver.nl", 25); ?

                      N Offline
                      N Offline
                      NewToAspDotNet
                      wrote on last edited by
                      #11

                      this is a good one, got the same error: Failure sending mail. no connection.......

                      L 1 Reply Last reply
                      0
                      • N NewToAspDotNet

                        this is a good one, got the same error: Failure sending mail. no connection.......

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #12

                        is smtp.myserver.nl the actual name of that server?

                        N 1 Reply Last reply
                        0
                        • L Lost User

                          is smtp.myserver.nl the actual name of that server?

                          N Offline
                          N Offline
                          NewToAspDotNet
                          wrote on last edited by
                          #13

                          the actual name is: smtp.kmo-ict.nl

                          L 1 Reply Last reply
                          0
                          • N NewToAspDotNet

                            the actual name is: smtp.kmo-ict.nl

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #14

                            ok well on 110 there's actually a pop3 server running.. and i think the smtp service was not started. so you should activate the smtp service in exchange (i'm not sure but i think it's deactivated by default.)

                            N 1 Reply Last reply
                            0
                            • L Lost User

                              ok well on 110 there's actually a pop3 server running.. and i think the smtp service was not started. so you should activate the smtp service in exchange (i'm not sure but i think it's deactivated by default.)

                              N Offline
                              N Offline
                              NewToAspDotNet
                              wrote on last edited by
                              #15

                              Hey man, thanx for all your responses..bud the smtp server is active, because we can send mails with other app's..anyway thanx.

                              L 1 Reply Last reply
                              0
                              • N NewToAspDotNet

                                Guys, I have a simple C# app to send e-mail. bud wen i click on send mail button i get this error: Syntax error, command unrecognized. The server response was: AVG POP3 Proxy Server 7.5.494/7.5.503[269.15.8/1185]. I googled a lot bud nothin found. Somebody pls a idea?

                                S Offline
                                S Offline
                                Skippums
                                wrote on last edited by
                                #16

                                Sometimes you have to enable remote usage for an smtp server... For example, with my google email account, I have to explicitly enable email forwarding through my smtp server. Otherwise, my e-mails are refused. Also, make sure the name you put in the "From" field matches the user sending the e-mail. Often, to avoid spamming, smtp servers REQUIRE that the identities match (ie, you cant send something while logged in as "Joe@foo.com" where the "from" field is populated with "Jane".) Also be sure to check the port and ip address of the smtp server (as noted in previous posts). If none of that works, try changing the "To" field to be a different email address than the "From" field. I don't think it will help, but you never know until you try. That's all the insight I have to offer, so I hope it helps! Jeff

                                1 Reply Last reply
                                0
                                • N NewToAspDotNet

                                  Hey man, thanx for all your responses..bud the smtp server is active, because we can send mails with other app's..anyway thanx.

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #17

                                  Yes i had a talk yesterday with a guy that knows exchange better than me and he told me also that smtp is active by default. so sorry about that one.. hmm.. are you trying to send the e-mail from inside your network or from the internet? because the smtp port is not accessible from the internet.. (which is no problem if you're sending a mail from inside your network..)

                                  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