Fixing error on 'email' variable

This commit is contained in:
Dita Aji Pratama 2023-05-19 19:48:34 +07:00
parent e02e6ba05c
commit f3d6530cc3

View File

@ -19,5 +19,5 @@ def smtp(config):
smtp_server.ehlo()
smtp_server.starttls()
smtp_server.login( config['login']['email'], config['login']['password'] )
smtp_server.sendmail('&&&&&&', email, msg.as_string() )
smtp_server.sendmail('&&&&&&', config['to'], msg.as_string() )
smtp_server.quit()