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
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
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
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