GithubHelp home page GithubHelp logo

mailer's Introduction

Mailer

This is a Tool that can be used for mass mailing

Usage

  • Clone this repo

  • Upload any csv file you have to the data folder, (Usually upload the google form response)

Timestamp,Email Address,Name,Mobile number,Year of study,Branch,......
2/10/2022 16:33:37,[email protected],Random,83103 39733 ,3,...
  • Populate the ENV file with your mail credentials and mention the file name you are using to read name and email. or use in the command line
    ex:

    • In ENV file
    EMAIL=<email>
    PASS=<password>
    FILE=<file_name>
    
    
    • In command line
    EMAIL=<email> PASS="<pwd>" FILE=<file_name> node dataMail.js
    

VVIMP If your Headers are different in CSV Files make sure you apply the changes in dataMail.js line no 27.

  • If your smtp server has a limit of how many mails it can send at a time you can change the variable here at line no 21 in dataMail.js.(Most of the time you can leave it as it is)
    ex:

    const howManyAtATime = 5;
  • If you want to increase the delay time between each mail you can change the variable here at line no 15 in dataMail.js.
    ex:

    function delay(del = 1800, variation = 0)
  • A Very Basic Template is provided in Template.js file. It takes 2 parameters as of now name and title, I am planning to add more parameters in the future.

    • can also manually edit the content
  • If you want to add any attachment's to the Mail Just put the files in Attachments folder. It will be automatically picked-up and attached to the mail.

    VVIMP Always delete all files in Attachments folder after sending a mail.If left it'll also add attachments to the next mail.

  • Run the script.

    • Entry Point: node dataMail.js
    • The console gives you the progress of the script.
    CSV file successfully processed
    Approximate Time:  0:04 s, PS: It might take more time if there are any attachments
    Processing> false [email protected] 1/1
    Time taken: 0:03 s
    yayy I took less time, You owe me!!```
    

Important Section

  • VVIMP Always delete all files in Attachments folder after sending a mail.If left it'll also add attachments to the next mail.

  • VVIMP If your Headers are different in CSV Files make sure you apply the changes in dataMail.js line no 27.

mailer's People

Contributors

prajwalprakash3722 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.