none
System.Net.Mail.smtpClient.send() Cannot send mail in Windows Server 2003

    Question

  • hi,

    i have written  a program to send mail over my Lan using System.Net.Mail.SmtpClient

    object. It is working fine with windows 2000 server on which i've written the code

    Now when i'm trying it on another system with windows server 2003 It is throwing an SMTPException With message:

    Syntax error in parameters or arguments. The server response was: Syntactically invalid EHLO argument(s)

    I Cannot understand what is the problem

    But when i tried to telnet from the system , i've just give the command

    elho navneeth

    the process completed well

    I've give just

    elho

    then i got the error

    Syntactically invalid EHLO argument(s).

    Hope to listen from any of you people out there.

    Thanks in advance.

    Wednesday, October 18, 2006 7:38 AM

Answers

  • Thanks for writing in dear.

    I've found where the problem was.

    The host on which the application is running is named with underscore(_), which is not allowed to ELHO the server through which the Mail with System.net.mail.smtpclient object , Is sent.

    Give out if anyother ,this kind of situation arises.

    Thanks,

    Wednesday, October 18, 2006 2:25 PM

All replies

  • please post some code
    Wednesday, October 18, 2006 12:16 PM
    Moderator
  • Thanks for writing in dear.

    I've found where the problem was.

    The host on which the application is running is named with underscore(_), which is not allowed to ELHO the server through which the Mail with System.net.mail.smtpclient object , Is sent.

    Give out if anyother ,this kind of situation arises.

    Thanks,

    Wednesday, October 18, 2006 2:25 PM