Giter Club home page Giter Club logo

parsemail's Introduction

parsemail - bulk mail sender

To be read pars-ayy-mail. Made for VITMAS. With love <3

Usage

  1. Clone the repo: git clone [email protected]:sreyan-ghosh/parsemail.git
  2. mailsender.py contains the code for a Python class MailDeets.py. Either uncomment the block or paste in another file. Make necessary changes in the import statements.
  3. Fill in MailDeets class with your details. Click here to get your SMTP password.
  4. Add the dataset to the data directory and make necessary changes in the filepath variable in both the files.
  5. To the parser.py file, make changes in the line where the pd.Series object is loaded into the variable maillist
  6. And you're done! SMTP allows sending of 85 mails at a go. Slice your list to resume sending mails if you get timed-out. The counter value will help there.

Contribution

  • Contribution is highly appreciated.
  • Go ahead and add better methods of sending mails that is not limited to SMTP or mailing limits.
  • Add a feature to send attachments as well.
  • Add a frontend to enable non-python users to work on this project.
  • Go ahead and open an issue if you want to add something else.
  • Take note to make a branch in your fork and open a PR for the commits on the branch. master branch PRs will not be accepted

Parseteams (in dev) (Only for VIT)

  • To use the get_mail_from_teams.py file, you must have the WHO bot installed in your teams profile.
  • The driver function is the get_emails() function which accepts a list of registration numbers and returns the emails of the provided numbers.
  • This utility is still buggy, since the script often runs faster than the page loads yielding repeated emails. Still can be used for bolk mail spamming.
  • To be used in conjunction with the mailsender.py file with minor code insertions to feed the list of emails into the mailsender.

parsemail's People

Contributors

dependabot[bot] avatar sreyan-ghosh avatar yagueto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

parsemail's Issues

[FEATURE]: add a feature to add attachments to the e-mails

Have a look at the mailsender.py file to understand how emails are being sent.

Make necessary changes in the file to include attachments in the emails.

Try keeping the protocol to SMTP. I have added another issue to migrate away from the protocol.
If you need to change the protocol, solve #3 first and then head back to solving #2.

Adhere to the Contribution section in the README, do not submit PRs from the master branch.

[FEATURE]: Include provision to choose attachment in command line

The mailsender.py has a feature to send attachments which was so graciously added by @yagueto. A slight modification is now required where:

  • Using argparse the path of the attachment will be passed into the program call.
  • If the mail is supposed to have no attachments, then the field will be left empty.
  • If there is an attachment, then the path of the attachment will follow a -a or a --attachment tag.

Adhere to the Contribution section in the README and do not make a PR from the master branch.

[CHANGE]: switch away from SMTP to increase speed

Have a look at the mailsender.py file to understand how emails are being sent.

Make necessary changes in the file to overcome SMTP mail sending limits and speed.

Try changing the protocol away from SMTP. Else if you are sticking with SMTP, make sure to increase the speed of sending mails. Also, try to work around the mail sending limits.

Adhere to the Contribution section in the README, do not submit PRs from the master branch.

tic-tac-toe

I am a beginner!! so I would like to add my small project under hacktoberfest2021.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.