def METHOD_NAME():
    if current_app.config['SMTP_ENCRYPTION']:
        smtp = SMTP(current_app.config['MAIL_SERVER'])
    else:
        smtp = SMTP()
    smtp.METHOD_NAME(current_app.config['MAIL_SERVER'], current_app.config['MAIL_PORT'])
    if not current_app.config['SMTP_NO_PASSWORD']:
        if current_app.config['SMTP_ENCRYPTION']:
            smtp.starttls()
        smtp.login(current_app.config['MAIL_USERNAME'], current_app.config['MAIL_PASSWORD'])
    return smtp