email-smtp


Nameemail-smtp JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/ouroboroscoding/email-smtp-python
SummaryNone
upload_time2024-12-14 13:53:33
maintainerNone
docs_urlNone
authorChris Nasr - Ouroboros Coding Inc.
requires_python>=3.10
licenseMIT
keywords json
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Email SMTP
Handles sending emails using SMTP

# Install
```
pip install email-smtp
```

# Requires
email-smtp requires python 3.10 or higher

# Using

```python
from em import send, valid

def send_email(to, subject, text, html):

	if valid(to):
		send(to, subject, {
			'text': text,
			'html': html
		})
```

# Options

| Name | Type | Description |
| ---- | ---- | ----------- |
| `attachments` | str[] \| {'body': str, 'filename'}[] | A list of attachments to add to the email |
| `bcc` | str \| str[] | One or more e-mail addresses to send a blind carbon copy to |
| `cc` | str \| str[] | One or more e-mail addresses to send a carbo copy to |
| `from` | str | The e-mail address to show as having sent the e-mail |
| `html` | str | The HTML version of the e-mail to send, this or `text` must be set |
| `reply-to` | str | The e-mail address to mark as receiving any replies |
| `text` | str | The text version of the e-mail to send, this or `html` must be set |
| `unsubscribe` | str | The URL to add to the header for the receiver to be able to unsubscribe |


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ouroboroscoding/email-smtp-python",
    "name": "email-smtp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "json",
    "author": "Chris Nasr - Ouroboros Coding Inc.",
    "author_email": "chris@ouroboroscoding.com",
    "download_url": "https://files.pythonhosted.org/packages/93/57/859adbcdf99fc296ac75f8963f71ce834644e4866419f081389a41cb3be7/email-smtp-1.0.1.tar.gz",
    "platform": null,
    "description": "# Email SMTP\nHandles sending emails using SMTP\n\n# Install\n```\npip install email-smtp\n```\n\n# Requires\nemail-smtp requires python 3.10 or higher\n\n# Using\n\n```python\nfrom em import send, valid\n\ndef send_email(to, subject, text, html):\n\n\tif valid(to):\n\t\tsend(to, subject, {\n\t\t\t'text': text,\n\t\t\t'html': html\n\t\t})\n```\n\n# Options\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `attachments` | str[] \\| {'body': str, 'filename'}[] | A list of attachments to add to the email |\n| `bcc` | str \\| str[] | One or more e-mail addresses to send a blind carbon copy to |\n| `cc` | str \\| str[] | One or more e-mail addresses to send a carbo copy to |\n| `from` | str | The e-mail address to show as having sent the e-mail |\n| `html` | str | The HTML version of the e-mail to send, this or `text` must be set |\n| `reply-to` | str | The e-mail address to mark as receiving any replies |\n| `text` | str | The text version of the e-mail to send, this or `html` must be set |\n| `unsubscribe` | str | The URL to add to the header for the receiver to be able to unsubscribe |\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": null,
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/ouroboroscoding/email-smtp-python",
        "Source": "https://github.com/ouroboroscoding/email-smtp-python",
        "Tracker": "https://github.com/ouroboroscoding/email-smtp-python/issues"
    },
    "split_keywords": [
        "json"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9357859adbcdf99fc296ac75f8963f71ce834644e4866419f081389a41cb3be7",
                "md5": "fbb93224b132a4a2e7684423356868bb",
                "sha256": "9337a3baae74bc39195a11b947f2ddf6f40e71f4c2a41421b2cdacdbf85f6e4b"
            },
            "downloads": -1,
            "filename": "email-smtp-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fbb93224b132a4a2e7684423356868bb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5470,
            "upload_time": "2024-12-14T13:53:33",
            "upload_time_iso_8601": "2024-12-14T13:53:33.479534Z",
            "url": "https://files.pythonhosted.org/packages/93/57/859adbcdf99fc296ac75f8963f71ce834644e4866419f081389a41cb3be7/email-smtp-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-14 13:53:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ouroboroscoding",
    "github_project": "email-smtp-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "email-smtp"
}
        
Elapsed time: 0.54442s