Metadata-Version: 2.4
Name: mptemail
Version: 0.0.2
Summary: A simple way to send email. for MPT
Home-page: https://github.com/mpt-ai/mpt-email-client
Author: Magnecomp PCL
Author-email: contact@magnecomp.com
License: MIT License
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

# mpt-email-client

## install
```
pip install mptemail
```

## how to use

```python
import mptemail

status = mptemail.sendEmail(
    subject="test", 
    message="helloworld", 
    emails=["admin@admin.com"],
    attachments=["test.txt"],
    host="https://email-service.xxx.com",
    api_key="<API_KEY>",
    verify_ssl=False
)
print(status)
```
| variable      | dtype      | description                           |
| --------      | ---------  | ------------------------------------- |
| subject       | str        | subject of email                      |
| message       | str        | email body can contains html string   |
| emails        | List[str]  | email to send message                 |
| attachments   | List[str]  | list of filepath(str) to attach files |
| host          | str        | email server uri                      |
| api_key       | str        | api_key for email services            |  
| verify_ssl    | bool       | set ssl verify true or false          |

#

output
```
[(True, 'email send to admin@admin.com sucess')]
```

#
status
```
True = send email sucess
False = send email fail
```

msg
```
string describe status
```
