PyDocs

Nav

Internet Protocols and Support

SMTP.ehlo_or_helo_if_needed

smtplib

method of SMTP (source) not WASI
  • SMTP.ehlo_or_helo_if_needed()
Call self.ehlo() and/or self.helo() if needed.

If there has been no previous EHLO or HELO command this session, this
method tries ESMTP EHLO first.

This method may raise the following exceptions:

 SMTPHeloError            The server didn't reply properly to
                          the helo greeting.
0 Examples
No examples for smtplib/SMTP.ehlo_or_helo_if_needed.
See Also
No see-alsos for smtplib/SMTP.ehlo_or_helo_if_needed
0 Notes
No notes for SMTP.ehlo_or_helo_if_needed