async def _send_email(email_, config, loop=asyncio.get_event_loop()):
smtp_server = get_attribute_from_config(config, EMAIL_SECTION_KEY, SMTP_SERVER_KEY)<EOL>smtp_port = int(get_attribute_from_config(config, EMAIL_SECTION_KEY, SMTP_PORT_KEY))<EOL>user = get_attribute_from_config(config, EMAIL_SECTION_KEY, USER_KEY)<EOL>password = get_attribute_from_config(config, EMAIL_SECTION_KEY, PASSWORD_KEY)<EOL>server = aiosmtplib.SMTP(hostname=smtp_server, port=smtp_port, loop=loop, use_tls=False)<EOL>await server.connect()<EOL>await server.starttls()<EOL>await server.login(user, password)<EOL>await server.send_message(email_)<EOL>await server.quit()<EOL>
Send an email.

    Args:
        email_ (email.MIMEMultipart): The email to send.
        config (defaultdict): A defaultdict.