email-stuff


Nameemail-stuff JSON
Version 0.0.13 PyPI version JSON
download
home_pagehttps://github.com/george-oconnor/email-stuff
SummaryEmail sending functionality package
upload_time2023-01-05 13:11:09
maintainer
docs_urlNone
authorgeorge.oconnor (George O' Connor)
requires_python
license
keywords python email outlook send email email attachments mail gmail smtp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # email-stuff

A package that allows to send emails via a number of different methods from within a python application. Adopted from ioe-email-stuff v0.0.13

## Installation

Run the following to install:

```python
python -m pip install email-stuff
```

## Usage

```python
from email_stuff import send_email

# Send an email - outlook only (for now).
# CC, BCC, attachment and server args not required.
# recipients, cc's and bcc's should be seperated by a semicolon, all in one string.
send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS", cc="CCs", bcc="BCCs", files=["./ATTACHMENT1.png"], server="smtp.outlook.com")

# recommended way to handle errors is a try/except block:
try:
    send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS")
except Exception as e:
    # do something with e
    print(e)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/george-oconnor/email-stuff",
    "name": "email-stuff",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,email,outlook,send email,email attachments,mail,gmail,smtp",
    "author": "george.oconnor (George O' Connor)",
    "author_email": "<george@georgestools.com>",
    "download_url": "https://files.pythonhosted.org/packages/c0/5b/8083dee3a8c98347c48773453e7cd545f5318542f0ef98eb881e9633f364/email-stuff-0.0.13.tar.gz",
    "platform": null,
    "description": "# email-stuff\r\n\r\nA package that allows to send emails via a number of different methods from within a python application. Adopted from ioe-email-stuff v0.0.13\r\n\r\n## Installation\r\n\r\nRun the following to install:\r\n\r\n```python\r\npython -m pip install email-stuff\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom email_stuff import send_email\r\n\r\n# Send an email - outlook only (for now).\r\n# CC, BCC, attachment and server args not required.\r\n# recipients, cc's and bcc's should be seperated by a semicolon, all in one string.\r\nsend_email(\"SUBJECT\", \"BODY\", \"USERNAME\", \"PASSWORD\", \"RECIPIENTS\", cc=\"CCs\", bcc=\"BCCs\", files=[\"./ATTACHMENT1.png\"], server=\"smtp.outlook.com\")\r\n\r\n# recommended way to handle errors is a try/except block:\r\ntry:\r\n    send_email(\"SUBJECT\", \"BODY\", \"USERNAME\", \"PASSWORD\", \"RECIPIENTS\")\r\nexcept Exception as e:\r\n    # do something with e\r\n    print(e)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Email sending functionality package",
    "version": "0.0.13",
    "split_keywords": [
        "python",
        "email",
        "outlook",
        "send email",
        "email attachments",
        "mail",
        "gmail",
        "smtp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dac8e4a62ca802063c131d90c20073bc8b855a9955b961f85a6b9c27041e8439",
                "md5": "5a53d5119976766947d0cb9fd6c5ff84",
                "sha256": "4621fca963dd3bc97e8f01210b300a139f8759dfa39f9c39fa12e4d3256ad3fd"
            },
            "downloads": -1,
            "filename": "email_stuff-0.0.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5a53d5119976766947d0cb9fd6c5ff84",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3451,
            "upload_time": "2023-01-05T13:11:08",
            "upload_time_iso_8601": "2023-01-05T13:11:08.075991Z",
            "url": "https://files.pythonhosted.org/packages/da/c8/e4a62ca802063c131d90c20073bc8b855a9955b961f85a6b9c27041e8439/email_stuff-0.0.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c05b8083dee3a8c98347c48773453e7cd545f5318542f0ef98eb881e9633f364",
                "md5": "fbb38790dc3cd087c237370e5ef94756",
                "sha256": "0e61b2a15b5f690ee8497bb9a4f115a0182dadb2f20b301117a8c1447316137e"
            },
            "downloads": -1,
            "filename": "email-stuff-0.0.13.tar.gz",
            "has_sig": false,
            "md5_digest": "fbb38790dc3cd087c237370e5ef94756",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3266,
            "upload_time": "2023-01-05T13:11:09",
            "upload_time_iso_8601": "2023-01-05T13:11:09.926108Z",
            "url": "https://files.pythonhosted.org/packages/c0/5b/8083dee3a8c98347c48773453e7cd545f5318542f0ef98eb881e9633f364/email-stuff-0.0.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-05 13:11:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "george-oconnor",
    "github_project": "email-stuff",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "email-stuff"
}
        
Elapsed time: 0.04655s