{ "info": { "author": "Alex Kerney", "author_email": "abk@mac.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "========\nEmail To\n========\n\n\n.. image:: https://img.shields.io/pypi/v/email_to.svg\n :target: https://pypi.python.org/pypi/email_to\n\n.. image:: https://img.shields.io/travis/abkfenris/email_to.svg\n :target: https://travis-ci.org/abkfenris/email_to\n\n.. image:: https://readthedocs.org/projects/email-to/badge/?version=latest\n :target: https://email-to.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/abkfenris/email_to/shield.svg\n :target: https://pyup.io/repos/github/abkfenris/email_to/\n :alt: Updates\n\n\nSimplyify sending HTML emails\n\n\n* Free software: MIT license\n* Documentation: https://email-to.readthedocs.io.\n\nJudgement rendered by:\n\n.. image:: https://api.codacy.com/project/badge/Grade/7dddc6b7000349958d485080f3dda7c1 \n :target: https://www.codacy.com/app/abk/email_to?utm_source=github.com&utm_medium=referral&utm_content=abkfenris/email_to&utm_campaign=Badge_Grade\n :alt: Codacy\n\n.. image:: https://landscape.io/github/abkfenris/email_to/master/landscape.svg?style=flat\n :target: https://landscape.io/github/abkfenris/email_to/master\n :alt: Code Health\n\n.. image:: https://codeclimate.com/github/abkfenris/email_to/badges/gpa.svg\n :target: https://codeclimate.com/github/abkfenris/email_to\n :alt: Code Climate\n\n.. image:: https://scrutinizer-ci.com/g/abkfenris/email_to/badges/quality-score.png?b=master\n :target: https://scrutinizer-ci.com/g/abkfenris/email_to/\n :alt: scrutinizer\n\nFeatures\n--------\n\nThe built in Python modules for sending email are powerful, but require a lot of\nboilerplate to write an HTML formatted email.\n\n.. code-block:: python\n\n from email.mime.multipart import MIMEMultipart\n from email.mime.text import MIMEText\n import smtplib\n\n message = MIMEMultipart('alternative')\n message['Subject'] = 'Test'\n message['From'] = 'user@gmail.com'\n message['To'] = 'someone@else.com'\n\n message.attach(MIMEText('# A Heading\\nSomething else in the body', 'plain')\n message.attach(MIMEText('
Something else in the body
', 'html')\n\n server = smtplib.SMTP('smtp.gmail.com', 587)\n server.starttls()\n server.login('user@gmail.com', 'password')\n server.sendmail('user@gmail.com', 'someone@else.com', message.as_string())\n server.quit()\n\nWith ``email_to`` sending a simple email becomes much more succint.\n\n.. code-block:: python\n\n import email_to\n\n server = email_to.EmailServer('smtp.gmail.com', 587, 'user@gmail.com', 'password')\n server.quick_email('someone@else.com', 'Test',\n ['# A Heading', 'Something else in the body'],\n style='h1 {color: blue}')\n\n\n``email_to`` also supports building a message up, line by line. This is\nespecially useful for monitoring scripts where there may be several different\nconditions of interest.\n\n.. code-block:: python\n\n import email_to\n\n server = email_to.EmailServer('smtp.gmail.com', 587, 'user@gmail.com', 'password')\n\n message = server.message()\n message.add('# Oh boy, something went wrong!')\n message.add('- The server had a hiccup')\n message.add('- The power went out')\n message.add('- Blame it on a rogue backhoe')\n message.style = 'h1 { color: red}'\n\n message.send('someone@else.com', 'Things did not occur as expected')\n\nAdditionally if the server details are not known at the beginning of the message,\nthat can be handled easily too.\n\n.. code-block:: python\n\n import email_to\n\n message = email_to.Message('# Every thing is ok')\n message.add('Everything has been running fine for days.')\n message.add('Probably time to build something new and break everything')\n message.style = 'h1 { color: green }'\n\n server = email_to.EmailServer('smtp.gmail.com', 587, 'user@gmail.com', 'password')\n server.send_message(message, 'someone@else.com', 'Things are awesome')\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n\n=======\nHistory\n=======\n\n0.1.0 (2017-09-27)\n------------------\n\n* First release on PyPI.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/abkfenris/email_to", "keywords": "email_to", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "email-to", "package_url": "https://pypi.org/project/email-to/", "platform": "", "project_url": "https://pypi.org/project/email-to/", "project_urls": { "Homepage": "https://github.com/abkfenris/email_to" }, "release_url": "https://pypi.org/project/email-to/0.1.0/", "requires_dist": [ "markdown", "premailer" ], "requires_python": "", "summary": "Simplyify sending HTML emails", "version": "0.1.0" }, "last_serial": 3217439, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "38bdaa1c4ffabf27a86b35ceceb76b16", "sha256": "4cf6bf04fd52f89b1225322ee39fcda917215fb3f1642dee23da76ca171f8840" }, "downloads": -1, "filename": "email_to-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "38bdaa1c4ffabf27a86b35ceceb76b16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7129, "upload_time": "2017-10-01T22:08:08", "url": "https://files.pythonhosted.org/packages/56/33/3f3a09446b8f8967f98e6df29cdda65d3cc5e40a0f0b6dedf3fd076a60c7/email_to-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "799c3918d913008c3e5391ec98f4eaca", "sha256": "611b47c23e9be1ed51b124a4e350d565607410f763daa6c727d1914083321c2b" }, "downloads": -1, "filename": "email_to-0.1.0.tar.gz", "has_sig": false, "md5_digest": "799c3918d913008c3e5391ec98f4eaca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14663, "upload_time": "2017-10-01T22:08:09", "url": "https://files.pythonhosted.org/packages/b6/37/1df96f9687991f7c61830d61395029615198106ab10f1863df03c96b83ba/email_to-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38bdaa1c4ffabf27a86b35ceceb76b16", "sha256": "4cf6bf04fd52f89b1225322ee39fcda917215fb3f1642dee23da76ca171f8840" }, "downloads": -1, "filename": "email_to-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "38bdaa1c4ffabf27a86b35ceceb76b16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7129, "upload_time": "2017-10-01T22:08:08", "url": "https://files.pythonhosted.org/packages/56/33/3f3a09446b8f8967f98e6df29cdda65d3cc5e40a0f0b6dedf3fd076a60c7/email_to-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "799c3918d913008c3e5391ec98f4eaca", "sha256": "611b47c23e9be1ed51b124a4e350d565607410f763daa6c727d1914083321c2b" }, "downloads": -1, "filename": "email_to-0.1.0.tar.gz", "has_sig": false, "md5_digest": "799c3918d913008c3e5391ec98f4eaca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14663, "upload_time": "2017-10-01T22:08:09", "url": "https://files.pythonhosted.org/packages/b6/37/1df96f9687991f7c61830d61395029615198106ab10f1863df03c96b83ba/email_to-0.1.0.tar.gz" } ] }