E-mail Error
-
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?
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
-
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?
-
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
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); }
-
I guess you've already tried to disable your anti-virus software, didn't you? Just to be sure what causes the problem...
Hi Laubi, Yes i did. Bud i get the same issue.
-
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); }
-
uhm.. are you sure your smtp server is on 110? normal smtp-servers are on port 25. 110 is pop
yes i m sure. i checked it.
-
yes i m sure. i checked it.
-
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?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:
-
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:
-
and what happens if you change this
SmtpClient server = new SmtpClient("smtp.myserver.nl", 110);
toSmtpClient server = new SmtpClient("smtp.myserver.nl", 25);
?this is a good one, got the same error: Failure sending mail. no connection.......
-
this is a good one, got the same error: Failure sending mail. no connection.......
is smtp.myserver.nl the actual name of that server?
-
is smtp.myserver.nl the actual name of that server?
the actual name is: smtp.kmo-ict.nl
-
the actual name is: smtp.kmo-ict.nl
-
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.)
Hey man, thanx for all your responses..bud the smtp server is active, because we can send mails with other app's..anyway thanx.
-
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?
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
-
Hey man, thanx for all your responses..bud the smtp server is active, because we can send mails with other app's..anyway thanx.
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..)