From faaed8cffd0288617e99c11e30896d8f7731c7e0 Mon Sep 17 00:00:00 2001 From: Geovanny Gonzalez-Rodriguez Date: Fri, 9 Jun 2023 11:46:36 +0200 Subject: [PATCH] [PDMVDEV-32] Change SMTP server Current SMTP server, smtp.cern.ch, is going to be decomissioned on June 30, 2023 Use the new server for sending emails from applications --- local/email_sender.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/email_sender.py b/local/email_sender.py index 7ad9126..52e241f 100644 --- a/local/email_sender.py +++ b/local/email_sender.py @@ -33,12 +33,12 @@ def __setup_smtp(self): credentials['password'] = self.credentials.split(':')[1] self.logger.info('Credentials loaded successfully: %s', credentials['username']) - self.smtp = smtplib.SMTP(host='smtp.cern.ch', port=587) + self.smtp = smtplib.SMTP(host='cernmx.cern.ch', port=25) # self.smtp.connect() self.smtp.ehlo() self.smtp.starttls() self.smtp.ehlo() - self.smtp.login(credentials['username'], credentials['password']) + # self.smtp.login(credentials['username'], credentials['password']) def __close_smtp(self): """