Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *args, **kwargs):
import warnings
warnings.warn(
"It is now possible to simply use 'SMTP' with smtp_ssl=True",
category=DeprecationWarning,
)
kwargs["smtp_ssl"] = True
super(SMTP_SSL, self).__init__(*args, **kwargs)