Re: SmtpMail connection question.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Can you monitor both sides of the conversation? That is, using Ethereal
(free from Ethereal.com), or some other packet sniffer, check the entire
conversation, both client and server.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Mitch" <Mitch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A7DFFB0-2D90-48DC-AF97-F3E91A858A19@xxxxxxxxxxxxxxxx
I've got 2 different applications that use the same SMTP server. One is
written in C# and uses the SmtpMail class. The other is in C++ and uses
the
ATL CSMTPConnction class. The SmtpMail code works just fine. The
CSMTPConnection code fails. In digging down into the ATL code, I can see
where it issues a "HELO" command to the smtp server and reads the result
to
check for a "250" return code as an indicator of success. Using telnet, I
can verify that 250 is returned from a "HELO" command. The big wrinkle
here
is that the smtp server is using a 3rd party smtp security product. I
suspect that the ATL code is doing something that the 3rd party product
does
not like. So, finally, my question is about how the SmtpMail class is
successful. Does the underlying code issue a "HELO" command at all?

TIA - Mitch


.



Relevant Pages

  • Re: SmtpMail connection question.
    ... Unfortunately, I do not have access to the SMTP server, so I am having to ... deduce what the problem could be based on the fact that the SmtpMail class ... FYI - When using telnet to check the response to "HELO", ... where it issues a "HELO" command to the smtp server and reads the result ...
    (microsoft.public.dotnet.framework)
  • Re: SmtpMail connection question.
    ... Every SMTP connection needs to start with either HELO or EHLO (extended ... In digging down into the ATL code, ... where it issues a "HELO" command to the smtp server and reads the result ...
    (microsoft.public.dotnet.framework)
  • Re: SmtpMail connection question.
    ... It is possible the SMTP is setup to use Extended HELO instead of the basic ... In digging down into the ATL code, ... can verify that 250 is returned from a "HELO" command. ...
    (microsoft.public.dotnet.framework)
  • Re: SmtpMail connection question.
    ... deduce all of this from logging information. ... Since I don't have access to the SMTP server, ... deduce what the problem could be based on the fact that the SmtpMail class ... FYI - When using telnet to check the response to "HELO", ...
    (microsoft.public.dotnet.framework)
  • SMTP Sending Mail Problem
    ... The parameters I used on the command ... The SMTP server we are using is Exchange if that matters. ... server.sendmail(fromaddr, toaddrs, msg) ... mail for delivery ...
    (comp.lang.python)