Giter Club home page Giter Club logo

mypersonsalautomatedscripts's Introduction

This project contains the some of my personal automated scripts.

  • Send an email using python script. - Send an attachment and also html template data.

  • TODO :- Have to Create an dynamic script which will send via email.

mypersonsalautomatedscripts's People

Contributors

wolfblunt avatar

Watchers

James Cloos avatar  avatar

mypersonsalautomatedscripts's Issues

Send mail from your Gmail account using Python.

Task Status :

  • Created two automated scripts which will send an email with attachments.
  • First script uses pdf-mail library and sends an email with a pdf file as an attachment.
  • Second script will send an email with some template as an email body and also with attachment(i.e. pdf, jpg, txt).

Task Description :

Python, being a powerful language doesn’t need any external library to import and offers a native library to send emails- “SMTP lib”. “smtplib” creates a Simple Mail Transfer Protocol client session object which is used to send emails to any valid email id on the internet. Different websites use different port numbers. I am using a Gmail account to send mail. The Port number used here is ‘587’.

Google is not allowing you to log in via smtplib because it has flagged this sort of login as "less secure", so what you have to do is go to this link while you're logged in to your google account, and allow the access:

https://www.google.com/settings/security/lesssecureapps

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.