{ "info": { "author": "Bernhard Maeser", "author_email": "bernhard.maeser@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "=====\ndlvr\n=====\n\nEmail sending for humans\n\nInstallation\n------------\n\nwith pip as easy as: ::\n\n $ pip install dlvr\n\nor checkout the latest version from github: ::\n\n $ git clone https://github.com/bmaeser/dlvr.git\n $ cd dlvr\n $ python setup.py install\n\nQuickstart\n------------------\n\nopen a connection to a server: ::\n\n >>> from dlvr import SMTPServer\n >>> s = SMTPServer()\n\ncreate a email: ::\n\n >>> from dlvr import Message\n >>> m = Message('bob@example.com', ['alice@gmail.com', 'support@example.com'],\n 'testsubject', 'testbody')\n\nsend the email: ::\n\n >>> s.connect()\n >>> s.send(m)\n >>> s.disconnect()\n\n\n\nFull example \n------------------\n\n::\n\n from dlvr import SMTPServer, Message\n\n server = SMTPServer(host=\"smtp.googlemail.com\", port='587',\n auth_user='MYUSERNAME', auth_pass='MYPASSWOR', tls=True)\n\n ## host (optional): defaults to localhost\n ## port (optional): defaults to 25\n ## auth_user (optional): your usernamer\n ## auth_pass (optional): your passwort\n ## tls (optional): encrypt the session defaults to False\n\n text = 'here is you link: http://www.google.com'\n subject = 'the link you asked for'\n\n html = \"\"\"\\\n \n \n \n

Hi!
\n Here is the link to google you wanted.\n

\n \n \n \"\"\"\n\n message = Message('bob@example.com', ['alice@gmail.com', 'support@example.com'],\n subject, text, alternatives=[(html, 'text/html')])\n\n ## constructor arguments:\n\n ## from_email: required, the senders email\n ## to: required, a list of recipients\n ## subject: required, the emails subject\n ## text_message (optional): the text representation of the email body\n ## cc (optional): a list of the carbon-copy recipients\n ## bcc (optional): a list of blind-carbon-copy recipients\n ## attachments (optional): a list of attachments, and the mimetype to use eg:\n ## attachments = [('/tmp/image.jpg', 'image/jpeg'), ('/tmp/song.mp3', 'audio/mpeg3')]\n ## alternatives (optional): a list of alternative representation of the email body\n ## and the mimetype to use\n ## charset (optional): the charset/encoding to use for text_message, defaults to utf-8\n\n ## message functions:\n\n # attach_alternative(content, 'mimetype')\n # where mimetype is optional und defaults to 'text/html'\n\n # attach_file('/path/to/file', 'mimetype')\n # where mimetype is opional and is guessed if not provided\n\n server.connect()\n server.send(message)\n ## send another message with the same open connection ...\n server.disconnect()\n\n ## or shorthand if you only send one message:\n server.send_email(message)\n\nContribute\n------------------\n\npull-request please and/or create a issue on github", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bmaeser/dlvr", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "dlvr", "package_url": "https://pypi.org/project/dlvr/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dlvr/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bmaeser/dlvr" }, "release_url": "https://pypi.org/project/dlvr/0.2/", "requires_dist": null, "requires_python": null, "summary": "email sending for humans", "version": "0.2" }, "last_serial": 791248, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "289508245920a48e8a9aec1c331613d1", "sha256": "725c6e21aced54b61f05441853211bb8fed550b6f35ed72ccfd863032b55df25" }, "downloads": -1, "filename": "dlvr-0.1.tar.gz", "has_sig": false, "md5_digest": "289508245920a48e8a9aec1c331613d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4520, "upload_time": "2012-08-22T17:20:03", "url": "https://files.pythonhosted.org/packages/65/38/7d3c80db447bd9e6d4b572c1a6a23299845cfd69c91e0ae4b02b8fa647b1/dlvr-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "ed18b508eb004a1d674f4cf7081dc468", "sha256": "eb0bc25eaa511662613e6a8ccf93a4f8f097eb58274b03c668729caf711293d8" }, "downloads": -1, "filename": "dlvr-0.2.tar.gz", "has_sig": false, "md5_digest": "ed18b508eb004a1d674f4cf7081dc468", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4515, "upload_time": "2012-08-22T17:20:47", "url": "https://files.pythonhosted.org/packages/59/85/4741acb4eaf8b5062edb64854ed78b7c280f043a1b22fa23dbd11d90a2a6/dlvr-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ed18b508eb004a1d674f4cf7081dc468", "sha256": "eb0bc25eaa511662613e6a8ccf93a4f8f097eb58274b03c668729caf711293d8" }, "downloads": -1, "filename": "dlvr-0.2.tar.gz", "has_sig": false, "md5_digest": "ed18b508eb004a1d674f4cf7081dc468", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4515, "upload_time": "2012-08-22T17:20:47", "url": "https://files.pythonhosted.org/packages/59/85/4741acb4eaf8b5062edb64854ed78b7c280f043a1b22fa23dbd11d90a2a6/dlvr-0.2.tar.gz" } ] }