{ "info": { "author": "kongkongyzt", "author_email": "kongkongyzt@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "PyMailMan\n=========\n\nA simple tool for sending mail by Python\n\nHomepage\n~~~~~~~~\n\nhttps://github.com/kongkongyzt/PyMailMan\n\nInstall\n~~~~~~~\n\n.. code:: sh\n\n sudo pip install PyMailMan\n\nUsage\n~~~~~\n\n- To send the text\n\n.. code:: python\n\n from PyMailMan import PyMailMan\n\n mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')\n mail.send(\n ['3456767@qq.com','testman@gmail.com'], \n 'This is title', \n 'This is the content'\n )\n print 'OK' if mail.status else mail.errMsg\n\n- To send the HTML\n\n.. code:: python\n\n from PyMailMan import PyMailMan\n\n mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')\n mail.send(\n ['3456767@qq.com','testman@gmail.com'],\n 'This is title', \n \"
This is the content
\"\n )\n print 'OK' if mail.status else mail.errMsg\n\n- To send the email with file\n\n.. code:: python\n\n from PyMailMan import PyMailMan\n\n mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')\n #Recommand to write the absolute path of the file\n mail.send(\n ['3456767@qq.com','testman@gmail.com'], \n 'This is title', \n 'This is the content',\n '/home/kongkongyzt/a.txt',\n '/home/kongkongyzt/b.txt'\n )\n print 'OK' if mail.status else mail.errMsg\n\n- To show the image in the mail content\n\n.. code:: python\n\n mail = PyMailMan(host='smtp-mail.outlook.com', user='xxxxx@outlook.com', password='xxxx')\n mail.send(\n ['783087000@qq.com'],\n 'This is title',\n \"Hello,The following image is the photo of last vacation in China, do you like it ?