Metadata-Version: 2.2
Name: dsmemail
Version: 0.0.7
Summary: A simple way to send email. for dsm
Home-page: https://gitlab.com/public-project2/dsm-email
Author: DigitalStoreMesh Co.,Ltd
Author-email: contact@storemesh.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.7
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

# DSM Email

## install
```
pip install dsmemail
```

## how to use

```python
import dsmemail

status = dsmemail.sendEmail(
    subject="test", 
    message="helloworld", 
    emails=["admin@admin.com"],
    attachments=["test.txt"],
    host="https://email-service.data.storemesh.com",
    api_key="<API_KEY>"
)
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            |  

output
```
[(True, 'email send sucess')]
```

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

msg
```
string describe status
```
