Skip to content

Commit

Permalink
Reconfigure email set up serval app
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Oct 30, 2023
1 parent cc6625d commit deace55
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions samples/ServalApp/serval_email_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def send_build_completed_email(
msg["To"] = recipient_address
msg["Subject"] = "Your NMT build job is complete!"
msg.add_attachment(pretranslations_file_data, filename="translations.txt")
self.server.ehlo()
self.server.starttls(context=self.context)
self.server.ehlo()
self.server.login(self.sender_address, self.__password)
Expand All @@ -82,7 +81,6 @@ def send_build_faulted_email(
msg["From"] = self.sender_address
msg["To"] = recipient_address
msg["Subject"] = "Your NMT build job has failed"
self.server.ehlo()
self.server.starttls(context=self.context)
self.server.ehlo()
self.server.login(self.sender_address, self.__password)
Expand All @@ -105,7 +103,6 @@ def send_build_started_email(self, recipient_address: str, build_info: str):
msg["To"] = recipient_address
msg["Subject"] = "Your NMT build job has started building!"

self.server.ehlo()
self.server.starttls(context=self.context)
self.server.ehlo()
self.server.login(self.sender_address, self.__password)
Expand Down

0 comments on commit deace55

Please sign in to comment.