def get_connection(fail_silently=False): """ Gets an SMTP connection using our OptionsStore """ return _get_connection( backend=get_mail_backend(), host=options.get('mail.host'), port=options.get('mail.port'), username=options.get('mail.username'), password=options.get('mail.password'), use_tls=options.get('mail.use-tls'), fail_silently=fail_silently, )