Esempio n. 1
0
 def _on_send(self):
     try:
         send(self.mail, server=self.server)
     except Exception, e:
         title = 'Send failed'
         message = 'The email could not be sent using %s.' % self.server
         message += ' This was the error:\n'
         message += str(e)
         if tkMessageBox.askretrycancel(title, message):
             self.after(1, self._on_send)
         return
Esempio n. 2
0
 def _on_send(self):
     try:
         send(self.mail, server = self.server)
     except Exception, e:
         title    = 'Send failed'
         message  = 'The email could not be sent using %s.' % self.server
         message += ' This was the error:\n'
         message += str(e)
         if tkMessageBox.askretrycancel(title, message):
             self.after(1, self._on_send)
         return
Esempio n. 3
0
 def send(self, filename):
     mail = copy(self.mail)
     mail.add_attachment(filename)
     send(mail, server = self.server)
Esempio n. 4
0
 def send(self, filename):
     mail = copy(self.mail)
     mail.add_attachment(filename)
     send(mail, server=self.server)