Skip to content

Commit

Permalink
Merge pull request #60 from cms-PdmV/EmailServer
Browse files Browse the repository at this point in the history
[PDMVDEV-32] Change SMTP server
  • Loading branch information
ggonzr authored Jun 9, 2023
2 parents c164663 + faaed8c commit 5e8b89b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local/email_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 5e8b89b

Please sign in to comment.