MailTm


NameMailTm JSON
Version 0.0.81 PyPI version JSON
download
home_pagehttps://github.com/MainSilent/MailTm
SummaryTemporary Email
upload_time2021-10-14 08:32:02
maintainer
docs_urlNone
authorMainSilent
requires_python>=3.6
license
keywords mail email temporary mail temporary email mailtm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MailTM API Wrapper

MailTm is a free temporary mail service, This library is useful for automation tasks such as making accounts that needs email verification.

## Installation

Windows:

```
pip install MailTm
```

Linux/Mac OS:

```
pip3 install MailTm
```

## Example

```python
from mailtm import Email

def listener(message):
    print("\nSubject: " + message['subject'])
    print("Content: " + message['text'] if message['text'] else message['html'])

# Get Domains
test = Email()
print("\nDomain: " + test.domain)

# Make new email address
test.register()
print("\nEmail Adress: " + str(test.address))

# Start listening
test.start(listener)
print("\nWaiting for new emails...")
```

# Documentation

API: https://mail.tm

`register(username=None, password=None, domain=None)` | Make an email account with random credentials, You can also pass a username, password and domain to use the same account.

`start(listener, interval=3)` | Start listening for new emails, Interval means how many seconds takes to sync, And you also need to pass a function for `listener`, This function gets called when new email arrive.

`stop()` | Stop listening for new emails.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MainSilent/MailTm",
    "name": "MailTm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "mail,email,temporary mail,temporary email,mailtm",
    "author": "MainSilent",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/5d/96/d2dfef6f612e3c4d91f15a9ee2de2c270a027bbadc63a11d2e4e9df6c939/MailTm-0.0.81.tar.gz",
    "platform": "",
    "description": "# MailTM API Wrapper\n\nMailTm is a free temporary mail service, This library is useful for automation tasks such as making accounts that needs email verification.\n\n## Installation\n\nWindows:\n\n```\npip install MailTm\n```\n\nLinux/Mac OS:\n\n```\npip3 install MailTm\n```\n\n## Example\n\n```python\nfrom mailtm import Email\n\ndef listener(message):\n    print(\"\\nSubject: \" + message['subject'])\n    print(\"Content: \" + message['text'] if message['text'] else message['html'])\n\n# Get Domains\ntest = Email()\nprint(\"\\nDomain: \" + test.domain)\n\n# Make new email address\ntest.register()\nprint(\"\\nEmail Adress: \" + str(test.address))\n\n# Start listening\ntest.start(listener)\nprint(\"\\nWaiting for new emails...\")\n```\n\n# Documentation\n\nAPI: https://mail.tm\n\n`register(username=None, password=None, domain=None)` | Make an email account with random credentials, You can also pass a username, password and domain to use the same account.\n\n`start(listener, interval=3)` | Start listening for new emails, Interval means how many seconds takes to sync, And you also need to pass a function for `listener`, This function gets called when new email arrive.\n\n`stop()` | Stop listening for new emails.\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Temporary Email",
    "version": "0.0.81",
    "project_urls": {
        "Bug Tracker": "https://github.com/MainSilent/MailTm/issues",
        "Homepage": "https://github.com/MainSilent/MailTm"
    },
    "split_keywords": [
        "mail",
        "email",
        "temporary mail",
        "temporary email",
        "mailtm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0219f532ee955a4b039ff2f7a656640c73f0d448d7084926c3fbf491dcdf0520",
                "md5": "84603c2bbfb17db8e39cdaed84024981",
                "sha256": "87dcd126b3ed115811e12a378105e80c78cf105e52136a48ce78929decca4e6d"
            },
            "downloads": -1,
            "filename": "MailTm-0.0.81-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "84603c2bbfb17db8e39cdaed84024981",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4468,
            "upload_time": "2021-10-14T08:32:00",
            "upload_time_iso_8601": "2021-10-14T08:32:00.856878Z",
            "url": "https://files.pythonhosted.org/packages/02/19/f532ee955a4b039ff2f7a656640c73f0d448d7084926c3fbf491dcdf0520/MailTm-0.0.81-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d96d2dfef6f612e3c4d91f15a9ee2de2c270a027bbadc63a11d2e4e9df6c939",
                "md5": "ac002f93a73d62d96a2aa2f6e6945bff",
                "sha256": "fff73ebe582b21a5d91448bbb86dec9affb3e9c967a10874d7847b2f92407d53"
            },
            "downloads": -1,
            "filename": "MailTm-0.0.81.tar.gz",
            "has_sig": false,
            "md5_digest": "ac002f93a73d62d96a2aa2f6e6945bff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3829,
            "upload_time": "2021-10-14T08:32:02",
            "upload_time_iso_8601": "2021-10-14T08:32:02.672880Z",
            "url": "https://files.pythonhosted.org/packages/5d/96/d2dfef6f612e3c4d91f15a9ee2de2c270a027bbadc63a11d2e4e9df6c939/MailTm-0.0.81.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-10-14 08:32:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MainSilent",
    "github_project": "MailTm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "mailtm"
}
        
Elapsed time: 0.32334s