I was testing a SMTP with TLS enabled so I used the example listed in:
http://www.synapse.ararat.cz/doku.php/public:howto:smtpsend
But the server was returning the following message when the "MailTo" function
was called:
503 5.5.1 Error: send HELO/EHLO first
I was trying to fix this problem when i found the AutoTLS property. I removed
the StartTLS function and set AutoTLS=True before the Login method call. For my
surprise, the routine worked well, so I looked into the Login function to
understand what is different when AutoTLS=True. After the call to StartTLS in
the Login method there is a call to Ehlo method, wich is a private method. I
know, I can send an EHLO manually though socket after the call to StartTLS, but
it would be interesting if the Ehlo method was public.
I don't know if the EHLO is a requirement for all TLS SMTPs, but as some of
them requires it, would be nice if the method for this command was in the
public area of the TSMTPSend class or if the StartTLS method call Ehlo method
by default. Or at least explain the differences between AutoTLS and a manual
StartTLS call in the example at synapse page to avoid unaware users like me to
discover the differences by trial and error... :)
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public