{ "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 \nHi!
\n Here is the link to google you wanted.\n