exchange-web-server


Nameexchange-web-server JSON
Version 1.1.0 PyPI version JSON
download
home_page
SummarySend/Save Emails & Attachments via Outlook
upload_time2023-01-03 08:28:35
maintainer
docs_urlNone
authorValentin Baier
requires_python
license
keywords python email outlook send send email save save email
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Exchange Web Server
This project contains the basic files to send and save an email/attachment through the module ```exchangelib```.

## Installation
Note that the module requires ```Python 3.6``` or higher.

To install the module, run a pip command like the following:


```
pip install exchange-web-server
```

## Setting .env Variables
To work properly, this module needs your companies:
- tenant_id
- client_id
- client_secret


## Usage create_account
Simply import the modules via the following import statements:
```
from exchange-web-server import create_account
account = create_account('user@provider.com')
```
The ```create_account``` function requires your Outlook-Exchange email-address.



## Usage send
Simply import the modules via the following import statements:

```
from exchange-web-server import send_email
```

The ```send_email``` function requires your account, subject, body, recipients and optional attachments.

To send an email, the following code provides the core functionality:
```
send_email(account, 'TestSubject', 'TestBody', ['recepient@provider.com'], ['path/to/your/attachments'])
```



## Usage save
Simply import the modules via the following import statements:

```
from exchange-web-server import save_attachment
```


The ```save_attachment``` function requires your Outlook Exchange Folder, which needs to be located in your inbox. Also it needs a path where to save and an exchangelib account.

To save an attachment, the following code provides the core functionality:
```
save_attachment(account, 'TestSubject', 'TestBody', ['recepient@provider.com'])
```

## License
This project is licensed by a MIT License.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "exchange-web-server",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,email,outlook,send,send email,save,save email",
    "author": "Valentin Baier",
    "author_email": "valentin_baier@gmx.de",
    "download_url": "https://files.pythonhosted.org/packages/32/dc/5ff7c3ef8d636d699b0a6503d57e3001d160cf2870a2b074116e33f34724/exchange-web-server-1.1.0.tar.gz",
    "platform": null,
    "description": "# Exchange Web Server\r\nThis project contains the basic files to send and save an email/attachment through the module ```exchangelib```.\r\n\r\n## Installation\r\nNote that the module requires ```Python 3.6``` or higher.\r\n\r\nTo install the module, run a pip command like the following:\r\n\r\n\r\n```\r\npip install exchange-web-server\r\n```\r\n\r\n## Setting .env Variables\r\nTo work properly, this module needs your companies:\r\n- tenant_id\r\n- client_id\r\n- client_secret\r\n\r\n\r\n## Usage create_account\r\nSimply import the modules via the following import statements:\r\n```\r\nfrom exchange-web-server import create_account\r\naccount = create_account('user@provider.com')\r\n```\r\nThe ```create_account``` function requires your Outlook-Exchange email-address.\r\n\r\n\r\n\r\n## Usage send\r\nSimply import the modules via the following import statements:\r\n\r\n```\r\nfrom exchange-web-server import send_email\r\n```\r\n\r\nThe ```send_email``` function requires your account, subject, body, recipients and optional attachments.\r\n\r\nTo send an email, the following code provides the core functionality:\r\n```\r\nsend_email(account, 'TestSubject', 'TestBody', ['recepient@provider.com'], ['path/to/your/attachments'])\r\n```\r\n\r\n\r\n\r\n## Usage save\r\nSimply import the modules via the following import statements:\r\n\r\n```\r\nfrom exchange-web-server import save_attachment\r\n```\r\n\r\n\r\nThe ```save_attachment``` function requires your Outlook Exchange Folder, which needs to be located in your inbox. Also it needs a path where to save and an exchangelib account.\r\n\r\nTo save an attachment, the following code provides the core functionality:\r\n```\r\nsave_attachment(account, 'TestSubject', 'TestBody', ['recepient@provider.com'])\r\n```\r\n\r\n## License\r\nThis project is licensed by a MIT License.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Send/Save Emails & Attachments via Outlook",
    "version": "1.1.0",
    "split_keywords": [
        "python",
        "email",
        "outlook",
        "send",
        "send email",
        "save",
        "save email"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e1723c83e3ae82cbbcc9ba7354443923b2042070ada857b42f811d412f4df389",
                "md5": "7e05bcc0d4c241b1f9e5ca4ba9f422cb",
                "sha256": "b9a433419d075ee62d2e2afaf22b25e681b3207eb41977bac89ec1b4d535cdc4"
            },
            "downloads": -1,
            "filename": "exchange_web_server-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7e05bcc0d4c241b1f9e5ca4ba9f422cb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 19494,
            "upload_time": "2023-01-03T08:28:34",
            "upload_time_iso_8601": "2023-01-03T08:28:34.160957Z",
            "url": "https://files.pythonhosted.org/packages/e1/72/3c83e3ae82cbbcc9ba7354443923b2042070ada857b42f811d412f4df389/exchange_web_server-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32dc5ff7c3ef8d636d699b0a6503d57e3001d160cf2870a2b074116e33f34724",
                "md5": "11b9a9a123e44febad964cf5f06e3c90",
                "sha256": "d83219af7165cd28b6df05008f66c0324886ac938f466b6bac229d815945b366"
            },
            "downloads": -1,
            "filename": "exchange-web-server-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "11b9a9a123e44febad964cf5f06e3c90",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12279,
            "upload_time": "2023-01-03T08:28:35",
            "upload_time_iso_8601": "2023-01-03T08:28:35.613324Z",
            "url": "https://files.pythonhosted.org/packages/32/dc/5ff7c3ef8d636d699b0a6503d57e3001d160cf2870a2b074116e33f34724/exchange-web-server-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 08:28:35",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "exchange-web-server"
}
        
Elapsed time: 0.03371s