Smtp mailer =newSmtp();// Use SMTP relay server with authentication and STARTTLS over port 25.SmtpServer relay = mailer.SmtpServers.Add("mail.company.com","j.doe@company.com","secret"); relay.SslMode = SslStartupMode.UseStartTls;// Supply the client's certificate (taken from a file)....
__version__ ="1.00"__all__ = ['SMTPSSLException','SMTP_SSL'] SSMTP_PORT =465classSMTPSSLException(smtplib.SMTPException):"""Base class for exceptions resulting from SSL negotiation."""classSMTP_SSL(smtplib.SMTP):"""This class provides SSL access to an SMTP server. SMTP over ...