Metadata-Version: 1.0
Name: PyMailMan
Version: 0.8.1
Summary: A simple tool for sending mail by Python
Home-page: UNKNOWN
Author: kongkongyzt
Author-email: kongkongyzt@gmail.com
License: MIT License
Description: PyMailMan
        =========
        
        A simple tool for sending mail by Python
        
        Homepage
        ~~~~~~~~
        
        https://github.com/kongkongyzt/PyMailMan
        
        Install
        ~~~~~~~
        
        .. code:: sh
        
            sudo pip install PyMailMan
        
        Usage
        ~~~~~
        
        -  To send the text
        
        .. code:: python
        
            from PyMailMan import PyMailMan
        
            mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')
            mail.send(
                ['3456767@qq.com','testman@gmail.com'], 
                'This is title', 
                'This is the content'
            )
            print 'OK' if mail.status else mail.errMsg
        
        -  To send the HTML
        
        .. code:: python
        
            from PyMailMan import PyMailMan
        
            mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')
            mail.send(
                ['3456767@qq.com','testman@gmail.com'],
                'This is title', 
                "<p style='color:red'>This is the content</p>"
            )
            print 'OK' if mail.status else mail.errMsg
        
        -  To send the email with file
        
        .. code:: python
        
            from PyMailMan import PyMailMan
        
            mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')
            #Ｒecommand to write the absolute path of the file
            mail.send(
                ['3456767@qq.com','testman@gmail.com'], 
                'This is title', 
                'This is the content',
                '/home/kongkongyzt/a.txt',
                '/home/kongkongyzt/b.txt'
            )
            print 'OK' if mail.status else mail.errMsg
        
        common mail smtp configure sample
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        assume the email address is 1234567@xx.com and password is 12345678 Here
        are some of the smtp configure example:
        
        -  QQ Mail
        
        .. code:: python
        
            PyMailMan(host='smtp.qq.com', user='1234567', password='12345678')
        
        -  Gmail Mail
        
        .. code:: python
        
            PyMailMan(host='smtp.gmail.com', user='1234567@gmail.com', password='12345678')
        
        -  Outlook
        
        .. code:: python
        
            PyMailMan(host='smtp-mail.outlook.com', user='1234567@outlook.com', password='12345678')
        
        Tips
        ~~~~
        
        -  You can manual defined the ports and the prefix
        
        .. code:: python
        
            PyMailMan(host='smtp.gmail.com', user='1234567@gmail.com', password='12345678', ports=25, prefix='gmail.com')
        
        Feedback
        ~~~~~~~~
        
        If you have any problem or issue, please contact me by opening an issue
        on the github homepage Homepage:
        https://github.com/kongkongyzt/PyMailMan
        
Keywords: mail
Platform: any
