Skip to main content

Build Status GitHub license PyPI - Python Version PyPI - Wheel PyPI

Downloads

Package Installation :

pip install python-gmail

Package Link

python-gmail :

Inorder to send mail form gmail using SMTP Server, first you need to enable "Two-Step Verification" on the sender mail id.

Google Account Help

  1. Open your Google Account .
2. In the navigation panel, select Security.

3. Under “Signing in to Google,” select 2-Step Verification and then Get started.

4. Set any "Account PIN". This pin will be the passowad of the sender mail is.

How to use the module :

E-mail login credential :

gmail_id = ('') #sender g-mail id

gmail_password = ('') #sender g-mail password

Single destination mail id :

destination_addresses = [
                    'reciver_mail_id_1@gmail.com'
                    ]

Multiple destination mail id's :

destination_addresses = [
                    'reciver_mail_id_1@gmail.com',
                    'reciver_mail_id_2@gmail.com',
                    'reciver_mail_id_3@gmail.com',
                    '............................',
                    '.............................',
                    'reciver_mail_id_N number@gmail.com',
                    ]

main subject :

subject = ('') #mail subject

mail message :

message = ('') #mail message

How to import the module :

from gmail.gmail import gmail

create mail object :

mail = gmail()

give sender login credential :

mail.login(gmail_id, gmail_password)

give reciver mail id or id's. :

mail.receiver_mail(destination_addresses)

send mail :

mail.send_mail(subject, message)

Example :

from gmail.gmail import gmail

mail = gmail()

mail.login(gmail_id, gmail_password)

mail.receiver_mail(destination_addresses)

mail.send_mail(subject, message)

License :

MIT Licensed

Author :

Sujit Mandal

GitHub

PyPi

LinkedIn

Metadata

Release files for python-gmail 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-gmail 0.0.8
File Size Uploaded
python-gmail-0.0.8.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-gmail 0.0.8
File Interpreter ABI Platform
python_gmail-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / python-gmail-0.0.8.tar.gz

Download URL python-gmail-0.0.8.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3a8346398b42daf0f2f123a0e10eb31a7f23cd85b5ac7429fdb31d9fb209a1c0
BLAKE2b-256 checksum
How to use checksums
a77a42ea2bdf8498ee26c5911ce938ef0b1dd23e3b0b6e921c647363b3483ca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release files / python_gmail-0.0.8-py3-none-any.whl

Download URL python_gmail-0.0.8-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ca12113a8440dd1881668ff49f446f72b9daba8b7222e0b1dc16b27e4bca32b
BLAKE2b-256 checksum
How to use checksums
3a569eedd84fa3171fb77e77b821a64b5197b07df5ecb60a04234046f6f75e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page