UI/EmailDialog.py

changeset 968
c6d377168b02
parent 945
8cd4d08fa9f6
child 1027
75707baf9551
equal deleted inserted replaced
966:890ec4c04ffe 968:c6d377168b02
300 server.sendmail(Preferences.getUser("Email"), self.__toAddress, msg) 300 server.sendmail(Preferences.getUser("Email"), self.__toAddress, msg)
301 server.quit() 301 server.quit()
302 QApplication.restoreOverrideCursor() 302 QApplication.restoreOverrideCursor()
303 except (smtplib.SMTPException, socket.error) as e: 303 except (smtplib.SMTPException, socket.error) as e:
304 QApplication.restoreOverrideCursor() 304 QApplication.restoreOverrideCursor()
305 res = E5MessageBox.critical(self, 305 res = E5MessageBox.retryAbort(self,
306 self.trUtf8("Send bug report"), 306 self.trUtf8("Send bug report"),
307 self.trUtf8("""<p>Message could not be sent.<br>Reason: {0}</p>""") 307 self.trUtf8("""<p>Message could not be sent.<br>Reason: {0}</p>""")
308 .format(str(e)), 308 .format(str(e)),
309 E5MessageBox.Critical) 309 E5MessageBox.Critical)
310 if res: 310 if res:

eric ide

mercurial