@@ -219,9 +219,14 class SchainNotify: | |||||
219 | smtp.login(self.__emailFromAddress, self.__emailPass) |
|
219 | smtp.login(self.__emailFromAddress, self.__emailPass) | |
220 |
|
220 | |||
221 | # Send the email |
|
221 | # Send the email | |
222 | smtp.sendmail(msg['From'], msg['To'], msg.as_string()) |
|
222 | try: | |
|
223 | smtp.sendmail(msg['From'], msg['To'], msg.as_string()) | |||
|
224 | except: | |||
|
225 | print "***** Could not send the email to %s *****" %msg['To'] | |||
|
226 | smtp.quit() | |||
|
227 | return 0 | |||
|
228 | ||||
223 | smtp.quit() |
|
229 | smtp.quit() | |
224 | smtp.close() |
|
|||
225 |
|
230 | |||
226 | return 1 |
|
231 | return 1 | |
227 |
|
232 |
General Comments 0
You need to be logged in to leave comments.
Login now