auto emailer
Project description
Emailer
Emailer provides
a decorator to send emails on error instead of raise an error
Emails will be constructed as MIMEMultipart contains only simple text. And sent throught smtp wihtout any authentication, which suitsmost of internal smtp servers.
Use as Example
from erroremailer import EmailError
ee = EmailError(
from_addr = 'me@example.com',
to_addr = 'others@example.com',
smtp_addr = '10.0.0.1@some-smtp.com',
# set send_email to False for test
send_email = False
)
@ee.email_on_error()
def make_a_error():
a = 1
b = '2'
print(a + b)
return a
make_a_error()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
error-emailer-0.0.1.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for error_emailer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f299b3f6731e4e95a2879729c6f78a447d42ec09fafebbfc6d5fb4e3851f53a |
|
MD5 | 3307dd985c451f4ffd76e2ac4c4261c6 |
|
BLAKE2b-256 | 7af9a2e93817392762184111140fcddd58ed036c84827772594d5c09fab0955f |