Skip to content

ian-abu/mail-sender-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages