Package trac :: Module notification :: Class NotifyEmail

Class NotifyEmail

source code

object --+    
         |    
    Notify --+
             |
            NotifyEmail
Known Subclasses:

Baseclass for notification by email.
Instance Methods
 
__init__(self, env)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add_headers(self, msg, headers) source code
 
encode_header(self, key, value) source code
 
format_header(self, key, name, email=None) source code
 
get_smtp_address(self, address) source code
 
notify(self, resid, subject, author=None) source code
 
send(self, torcpts, ccrcpts, mime_headers={})
Send message to recipients.
source code

Inherited from Notify: begin_send, finish_send, get_recipients

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  addrsep_re = re.compile(r'[;\s,]+')
  from_email = 'trac+tickets@localhost'
  nodomaddr_re = re.compile(r'[\w\d_\.-]+')
  subject = ''
hash(x)
  template_name = None
hash(x)
Properties

Inherited from object: __class__

Method Details

__init__(self, env)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

notify(self, resid, subject, author=None)

source code 
Overrides: Notify.notify

send(self, torcpts, ccrcpts, mime_headers={})

source code 
Send message to recipients.
Overrides: Notify.send
(inherited documentation)