コード例 #1
0
ファイル: sage_email.py プロジェクト: TIMMYD3/sagenb
 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
コード例 #2
0
ファイル: sage_email.py プロジェクト: antonio-rojas/sagenb
 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
コード例 #3
0
ファイル: sage_email.py プロジェクト: TIMMYD3/sagenb
 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
コード例 #4
0
ファイル: sage_email.py プロジェクト: antonio-rojas/sagenb
 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