import smtplib


def send_email(msg):
    # Send the message via our own SMTP server.
    with smtplib.SMTP_SSL('smtp.gmail.com', 465) as s:
        s.send_message(msg)

@@ -31,16 +31,291 @@
 l(msg):%0A
+    username = os.getenv('CS251TK_EMAIL_USERNAME', None)%0A    if not username:%0A        raise Exception('Missing $CS251TK_EMAIL_USERNAME')%0A    password = os.getenv('CS251TK_EMAIL_PASSWORD', None)%0A    if not password:%0A        raise Exception('Missing $CS251TK_EMAIL_PASSWORD')%0A%0A
     # Se
@@ -409,16 +409,52 @@
 ) as s:%0A
+        s.login(username, password)%0A
         

add username and password auth to send_email