marrow / mailer

A light-weight, modular, message representation and mail delivery framework for Python.
MIT License
276 stars 62 forks source link

Documentation for logging and error checking is amiss #79

Open metaperl opened 6 years ago

metaperl commented 6 years ago

hello,

The documentation for this library does not show any way to enable logging.

Currently, email is not being delivered and I have no idea why - the ability to enable logging would be of great use.

Also the docs do not indicate the return value of methods, so I have no idea how to see if each method call is working.

My usage of this module is very minimal. All of it is shown here

sh4d0v1 commented 5 years ago

Documentation about the return value especially of the send() function would be very nice.

Of course the function can't return if the mail successfully arrived at the recipients mailbox, but it could tell if the mail was handed to the SMTP server successfully.

amcgregor commented 5 years ago

Official documentation, as logging is universal Python functionality, not custom or specific to this package.

The return value of send() calls will depend on the context in which you are invoking that method and the particular configuration you are utilizing: