SMTPHandler and mail subject

Andriy Kornatskyy andriy.kornatskyy at live.com
Wed Mar 12 06:27:45 EDT 2014


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.rasmuson at 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




More information about the Python-list mailing list