Ejemplo n.º 1
0
 def on_success(result):
     """
     Callback in case of a successfully sent email.
     """
     if verbose:
         print("Successfully sent an email to %s." % to)
     reactor.stop()
     os.kill(os.getpid(),9)                     # suicide
Ejemplo n.º 2
0
 def on_success(result):
     """
     Callback in case of a successfully sent email.
     """
     if verbose:
         print("Successfully sent an email to %s." % to)
     reactor.stop()
     os.kill(os.getpid(), 9)  # suicide
Ejemplo n.º 3
0
 def on_failure(error):
     """
     Callback in case of a failure sending an email.
     """
     if verbose:
         print("Failed to send email to %s." % to)
         print("-" * 70)
         print(error.getErrorMessage())
         print("-" * 70)
     reactor.stop()
     os.kill(os.getpid(),9)                    # suicide
Ejemplo n.º 4
0
 def on_failure(error):
     """
     Callback in case of a failure sending an email.
     """
     if verbose:
         print("Failed to send email to %s." % to)
         print("-" * 70)
         print(error.getErrorMessage())
         print("-" * 70)
     reactor.stop()
     os.kill(os.getpid(), 9)  # suicide