GithubHelp home page GithubHelp logo

mail-script's Introduction

mail-script

Automate your mails with Python

Python code to illustrate Sending mail with attachments from your Gmail account

Libraries to be imported

  • smtplib
  • from email.mime.multipart import MIMEMultipart
  • from email.mime.text import MIMEText
  • from email.mime.base import MIMEBase
  • from email import encoders
  • pandas

Note: Turn off "Less secure app access" Click here

#Scenario: We had organized Webinar Series and received more than 500 registrations. Now the challenge was to send certificate to them. To tackle this problem, I wrote this small python script in Python. Script takes input as a CSV and send mail to participants with individual certificate in PDF.

I have also mentioned rename_pdf function in the script, it changes the certificate name to 'username_int' to make each and every file unique. So It will be easy to send mail with the attachment.

mail-script's People

Contributors

smitjethwa avatar

Stargazers

Siddhant Mishra avatar

Watchers

James Cloos avatar  avatar

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.