Package npsgd :: Module email_manager
[hide private]
[frames] | no frames]

Module email_manager

source code

NPSGD e-mail related module for blocking/non-blocking sends.

Classes [hide private]
  EmailSendError
  EmailManagerThread
Thread for sending e-mail in the background (using a queue of e-mails).
  Email
Actual e-mail object containing all information needed to send an e-mail.
Functions [hide private]
 
blockingEmailSend(email)
Attempt to send an e-mail synchronously, reporting an error if we fail.
source code
 
backgroundEmailSend(email)
Attempt to send an e-mail asynchronously, spawning a background thread if necesarry.
source code
 
smtpServer() source code
Variables [hide private]
  email_manager_thread = None
  __package__ = 'npsgd'
Function Details [hide private]

backgroundEmailSend(email)

source code 

Attempt to send an e-mail asynchronously, spawning a background thread if necesarry.

This method sends an e-mail in the background using an e-mail thread. Note that this has a side effect of actually spawning an e-mail thread if none exists already.