import yagmail user = \'myEmail@gmail.com\' password = \'myPassword\' yag = yagmail.SMTP(user, password) yag.send(\'myOtherEmail@gmail.com\', \'Subject\')