Re: SMTPHandler and mail subject
If you want a much more fully-featured mail handler for the standard logging framework, there's this: https://pypi.python.org/pypi/mailinglogger/3.8.0 cheers, Chris On 12/03/2014 12:25, eras.rasmu...@gmail.com wrote: It works. Thank you :) Eras -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk -- https://mail.python.org/mailman/listinfo/python-list
SMTPHandler and mail subject
Hi I use logging.handlers.SMTPHandler and i have tried to change subject of mail. Are there exists easy way to do that ? Subject of mail can change repeatedly depends on content of mail. Eras -- https://mail.python.org/mailman/listinfo/python-list
Re: SMTPHandler and mail subject
Eras, You have to override getSubject method of SMTPHandler. http://hg.python.org/cpython/file/677327810121/Lib/logging/handlers.py#l907 Thanks. Andriy Kornatskyy On Mar 12, 2014, at 12:08 PM, eras.rasmu...@gmail.com wrote: Hi I use logging.handlers.SMTPHandler and i have tried to change subject of mail. Are there exists easy way to do that ? Subject of mail can change repeatedly depends on content of mail. Eras -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: SMTPHandler and mail subject
It works. Thank you :) Eras -- https://mail.python.org/mailman/listinfo/python-list