Skip to main content

Python client for mailsrv.marcusj.org

Project description

MJMS - A client for https://mailsrv.marcusj.org

Usage

from mjms import MJMS

mjms = MJMS('API_KEY')

mjms.send_mail('example@email.com', 'This is the subject!', html='<h1>Hello world</h1>') # the first argument can also be a list of emails. text is also a valid kwarg

res = mjms.verify_email('example@email.com') 
# {'ok': True, 'token': 'XXXXXXX'} or {'ok': False, 'error': '...'}
print(mjms.check_verified(res['token']))

API keys can be obtained by visiting https://mailsrv.marcusjt.tech and signing in with replit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mjms-1.2.1.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

mjms-1.2.1-py3-none-any.whl (1.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page