UI/EmailDialog.py

branch
5_1_x
changeset 969
6ab98ee3c804
parent 882
34b86be88bf0
child 1028
4ba98509c2bc
equal deleted inserted replaced
967:d0f77c6f3fd4 969:6ab98ee3c804
297 server.sendmail(Preferences.getUser("Email"), self.__toAddress, msg) 297 server.sendmail(Preferences.getUser("Email"), self.__toAddress, msg)
298 server.quit() 298 server.quit()
299 QApplication.restoreOverrideCursor() 299 QApplication.restoreOverrideCursor()
300 except (smtplib.SMTPException, socket.error) as e: 300 except (smtplib.SMTPException, socket.error) as e:
301 QApplication.restoreOverrideCursor() 301 QApplication.restoreOverrideCursor()
302 res = E5MessageBox.critical(self, 302 res = E5MessageBox.retryAbort(self,
303 self.trUtf8("Send bug report"), 303 self.trUtf8("Send bug report"),
304 self.trUtf8("""<p>Message could not be sent.<br>Reason: {0}</p>""") 304 self.trUtf8("""<p>Message could not be sent.<br>Reason: {0}</p>""")
305 .format(str(e)), 305 .format(str(e)),
306 E5MessageBox.Critical) 306 E5MessageBox.Critical)
307 if res: 307 if res:

eric ide

mercurial