py-simple-email


Namepy-simple-email JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/sannjayy/py-simple-email
SummaryPython Simple Fast Email Sending without External Libs
upload_time2024-02-29 07:06:35
maintainer
docs_urlNone
authorSanjay Sikdar
requires_python>=3.9, <4
licenseMIT
keywords python smtp email send python send email
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Python Simple Email Sender (using Threads)
Python Simple Fast Email Sending Without External Library [Implemented with Multi-Threading]

GitHub Repo: [https://github.com/sannjayy/py-simple-email](https://github.com/sannjayy/py-simple-email)
### Installaion
Do the following in your virtualenv:

`pip install py-simple-email`

**Import:**
```
from py_simple_email import Email
```
---

**Minimal Code Example:**
```python
from py_simple_email import Email

# SMTP Configuration:
email = Email( 
    EMAIL_HOST = 'email-smtp.ap-south-1.amazonaws.com', 
    EMAIL_HOST_USER = 'XXXXXXXXXXXXXX', 
    EMAIL_HOST_PASSWORD = 'XXXXXXXXXXXXXXXXXXX', 
    DEFAULT_FROM_EMAIL = 'Sanjay Sikdar <hello@sanjaysikdar.dev>',
    EMAIL_PORT= 587, 
    EMAIL_USE_TLS = True,
)

# Sending Email:
email.send(
    to_email=['hello@sanjaysikdar.dev', 'hello@znassolutions.com'],
    subject='Test Mail',
    msg='Hello from Simple Email.',
)
```

---

**Sending Fancy Emails:**

```python

html = """\
<html>
  <body>
    <p>Hi,<br>
       How are you?<br>
       <a href="http://read.sanjaysikdar.dev">Sanjay Sikdar</a> 
       has many great tutorials.
    </p>
  </body>
</html>
"""

email.send(
    from_email='host@sanjaysikdar.dev',
    to_email='me@sanjaysikdar.dev',
    subject='HTML Test E-email',
    msg=html,
    is_html=True
)

```

---

[![](https://img.shields.io/github/followers/sannjayy?style=social)](https://github.com/sannjayy)  
Developed by *Sanjay Sikdar*.   
- 📫 me@sanjaysikdar.dev




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sannjayy/py-simple-email",
    "name": "py-simple-email",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9, <4",
    "maintainer_email": "",
    "keywords": "python,smtp,email send,python send email",
    "author": "Sanjay Sikdar",
    "author_email": "me@sanjaysikdar.dev",
    "download_url": "https://files.pythonhosted.org/packages/bb/89/d0d67cf3d27c15e907b0f6a26caf3960a7db0c758c5da134d76aea2ad525/py_simple_email-1.0.1.tar.gz",
    "platform": null,
    "description": "## Python Simple Email Sender (using Threads)\nPython Simple Fast Email Sending Without External Library [Implemented with Multi-Threading]\n\nGitHub Repo: [https://github.com/sannjayy/py-simple-email](https://github.com/sannjayy/py-simple-email)\n### Installaion\nDo the following in your virtualenv:\n\n`pip install py-simple-email`\n\n**Import:**\n```\nfrom py_simple_email import Email\n```\n---\n\n**Minimal Code Example:**\n```python\nfrom py_simple_email import Email\n\n# SMTP Configuration:\nemail = Email( \n    EMAIL_HOST = 'email-smtp.ap-south-1.amazonaws.com', \n    EMAIL_HOST_USER = 'XXXXXXXXXXXXXX', \n    EMAIL_HOST_PASSWORD = 'XXXXXXXXXXXXXXXXXXX', \n    DEFAULT_FROM_EMAIL = 'Sanjay Sikdar <hello@sanjaysikdar.dev>',\n    EMAIL_PORT= 587, \n    EMAIL_USE_TLS = True,\n)\n\n# Sending Email:\nemail.send(\n    to_email=['hello@sanjaysikdar.dev', 'hello@znassolutions.com'],\n    subject='Test Mail',\n    msg='Hello from Simple Email.',\n)\n```\n\n---\n\n**Sending Fancy Emails:**\n\n```python\n\nhtml = \"\"\"\\\n<html>\n  <body>\n    <p>Hi,<br>\n       How are you?<br>\n       <a href=\"http://read.sanjaysikdar.dev\">Sanjay Sikdar</a> \n       has many great tutorials.\n    </p>\n  </body>\n</html>\n\"\"\"\n\nemail.send(\n    from_email='host@sanjaysikdar.dev',\n    to_email='me@sanjaysikdar.dev',\n    subject='HTML Test E-email',\n    msg=html,\n    is_html=True\n)\n\n```\n\n---\n\n[![](https://img.shields.io/github/followers/sannjayy?style=social)](https://github.com/sannjayy)  \nDeveloped by *Sanjay Sikdar*.   \n- \ud83d\udceb me@sanjaysikdar.dev\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python Simple Fast Email Sending without External Libs",
    "version": "1.0.1",
    "project_urls": {
        "Bug Reports": "https://github.com/sannjayy/py-simple-email/issues",
        "Funding": "https://www.paypal.com/paypalme/znasofficial",
        "Homepage": "https://github.com/sannjayy/py-simple-email",
        "Say Thanks!": "https://saythanks.io/to/sannjayy",
        "Source": "https://github.com/sannjayy/py-simple-email/"
    },
    "split_keywords": [
        "python",
        "smtp",
        "email send",
        "python send email"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bb89d0d67cf3d27c15e907b0f6a26caf3960a7db0c758c5da134d76aea2ad525",
                "md5": "4f0256b7dd1e92cadeb9d90885c5e10f",
                "sha256": "addde2749840f309af595c7845231d8459af45e03cad8ffec62a796970fffa4d"
            },
            "downloads": -1,
            "filename": "py_simple_email-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4f0256b7dd1e92cadeb9d90885c5e10f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9, <4",
            "size": 4093,
            "upload_time": "2024-02-29T07:06:35",
            "upload_time_iso_8601": "2024-02-29T07:06:35.681006Z",
            "url": "https://files.pythonhosted.org/packages/bb/89/d0d67cf3d27c15e907b0f6a26caf3960a7db0c758c5da134d76aea2ad525/py_simple_email-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-29 07:06:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sannjayy",
    "github_project": "py-simple-email",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "py-simple-email"
}
        
Elapsed time: 0.26592s