diff options
Diffstat (limited to 'app/dock-single.py')
-rw-r--r-- | app/dock-single.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/dock-single.py b/app/dock-single.py index b5d9351..daf920c 100644 --- a/app/dock-single.py +++ b/app/dock-single.py @@ -183,7 +183,7 @@ def email(zipArchive): from email.mime.base import MIMEBase from email import encoders - fromaddr = "navanchauhan@gmail.com" + fromaddr = config['SMTP']['EMAIL'] msg = MIMEMultipart() msg['From'] = fromaddr @@ -200,9 +200,9 @@ def email(zipArchive): p.add_header('Content-Disposition', "attachment; filename= %s" % filename) msg.attach(p) - s = smtplib.SMTP('smtp.gmail.com', 587) + s = smtplib.SMTP(config['SMTP']['SERVER'], config['SMTP']['PORT']) s.starttls() - s.login(fromaddr, 'okrs shoc ahtk idui') + s.login(fromaddr, config['SMTP']['PASSWORD']) text = msg.as_string() s.sendmail(fromaddr, toaddr, text) |