Skip to main content

a program that sends emails in one line

Project description

mail-sending-program 1.5

PyPI GitHub GitHub Workflow Status (with event) Downloads

a program that makes it really easy to send emails and read emails with python

sections

install

pip install mail-sending-program

update

pip install --upgrade mail-sending-program

uninstall

pip uninstall mail-sending-program

examples:

1 sending a html email to one person:

import gmail_sender as g 
g.send_html_gmail_to_one(email_name,password_for_gmail , to, subject, content_html, write)
# or if you want to use a template use 
g.send_html_gmail_to_one(email_name,password_for_gmail , to, subject, load_template(filename), write)

2 sending plain text gmail to a person:

import gmail_sender as g 
g.send_gmail_to_one(email_name,password_for_gmail , to, subject, content)

3 send html gmail to many people:

import gmail_sender as g 
send_html_gmail_to_people_in_list(email_name,password_for_gmail , to(list), subject, content_html)
# or if you want to use a template use 
g.send_html_gmail_to_one(email_name,password_for_gmail , to, subject, load_template(filename), write)

4 send plain text gmail to many people:

import gmail_sender as g 
g.send_gmail_to_people_in_list(email_name,password_for_gmail , to(list), subject, content)

5 send random letters with caps lock to someone:

import gmail_sender as g 
g.send_random_message_no_word_meaning_caps_lock(email_name,password_for_gmail , to, subject, letters)

6 random letters with caps lock to many people:

import gmail_sender as g 

g.send_random_message_no_word_meaning_caps_lock_to_many(email_name, password_for_gmail  ,to list, subject ,lettrs):

7 send random lower case letters someone:

import gmail_sender as g 
g.send_random_message_no_word_meaning_lower_case(email_name,password_for_gmail , to, subject, letters)

8 send random lower case letters to many people:

import gmail_sender as g 
g.send_random_message_no_word_meaning_lower_case(email_name, password_for_gmail  ,to list, subject ,lettrs)

9 read email:

import gmail_sender as g 
email = g.read_email(email_name, password_for_gmail, org)
print(email)

10 send gmail with attachment:

import gmail_sender as g
g.send_attachment_with_regular_body(email_name, password_for_gmail, to, subject, content, path_to_file, write)

11 send gmail with attachment:

import gmail_sender as g
g.send_attachment_with_html_body(email_name, password_for_gmail, to, subject, content_html, path_to_file, write)
# or if you want to use a template use 
g.send_html_gmail_to_one(email_name,password_for_gmail , to, subject, load_template(filename), write)

inputs in a function

input name explanation
email name your email name
password_for_gmail your email password
to to wich email address you want to send the email
to(list) a list of people to send to
subject emails subject
content emails content
letters how many letters do you want in the email
content_html emails html content
load_template(filename) load a html template and instead of filename use your html template
path_to_file path yto the file you want to attach
write if you want to write your email in a file called gmail.txt set as yes if not dont fill it

updates

there is nothing planned if you are interested in a feature contact me with issues

latest update

1.5

  1. make an auto sending bot to send email at any time you want to whoever you want

  2. adding ways to make a template file other than html

  3. bug fixes

to my github click here

to the pypi page click here

if there are any bugs please report

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

mail_sending_program-1.5.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

mail_sending_program-1.5-py3-none-any.whl (6.2 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