{"id":27130,"library":"mailer","title":"mailer","description":"A simple Python module to send email messages. Current version 0.8.1, last updated in 2011. No longer actively maintained; use in legacy projects only.","status":"deprecated","version":"0.8.1","language":"python","source_language":"en","source_url":"https://github.com/example/mailer","tags":["email","smtp","legacy"],"install":[{"cmd":"pip install mailer==0.8.1","lang":"bash","label":"Stable version"}],"dependencies":[],"imports":[{"note":"Mailer is a class inside the mailer module.","wrong":"import mailer.Mailer","symbol":"Mailer","correct":"from mailer import Mailer"},{"note":"Correct import for Message class.","wrong":"","symbol":"Message","correct":"from mailer import Message"}],"quickstart":{"code":"from mailer import Mailer, Message\n\nmailer = Mailer('smtp.example.com')\nmailer.login('user@example.com', 'password')\nmsg = Message(From='from@example.com', To='to@example.com', Subject='Hello', Body='World')\nmailer.send(msg)","lang":"python","description":"Send a plain text email via SMTP."},"warnings":[{"fix":"Migrate to yagmail or smtplib.","message":"mailer 0.8.1 is over a decade old; no support for modern TLS/SSL or authentication. Use smtplib from stdlib or yagmail for modern email.","severity":"deprecated","affected_versions":">=0.8.0"},{"fix":"Use a dedicated library like yagmail for Gmail OAuth.","message":"The login method does not support password-less authentication or OAuth. Only plain password.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from mailer import Mailer` instead.","cause":"Incorrect import: using `import mailer` then `mailer.Mailer`.","error":"AttributeError: module 'mailer' has no attribute 'Mailer'"},{"fix":"Switch to yagmail with OAuth or generate an App Password for the SMTP server.","cause":"Modern Gmail requires App Passwords or OAuth; mailer sends plain password.","error":"smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted')"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}