- Timestamp:
- 11/07/08 15:33:01 (2 months ago)
- Files:
-
- 1 modified
-
trunk/turbomail/control.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/turbomail/control.py
r113 r114 7 7 in your own applications:: 8 8 9 from turbomail.message import Message 10 from turbomail.control import interface 11 interface.start() 9 import turbomail 12 10 13 message = Message(...)14 interface.send(message)11 turbomail.interface.config = {'mail.on': True, ...} 12 turbomail.interface.start() 15 13 16 interface.stop() 14 message = turbomail.Message(...) 15 turbomail.interface.send(message) 16 17 turbomail.interface.stop() 18 19 Remember to configure your outbound settings in the config dictionary. 17 20 18 21 TurboMail will, by default, immediately delete any messages remaining in 19 the queue and wait on any in-progress deliveries. To block execution and 20 allow the queue to empty, pass `blocking=True` as an argument to `stop`. 22 the queue and wait on any in-progress deliveries. 21 23 """ 22 24
