Code Monkey home page Code Monkey logo

node-xlxs-mail's Introduction

Node-xlxs-mail

Send mail with data extracted from excel 获取Excel里的邮件地址并发送邮件

This script helped me send out 50 mails to inform those who registered freecodecamp meetup activities yesterday within 10 mins (Take so long time just because of TIMEOUT issues for ping mail.google.com problem : ) Here is an article-CN associated this project .

Modules

  • nodemailer
  • node-xlsx
  • log4js

Features

  • You can easily to send mails to those email address stored in excel
  • You can review the logs to check the status

####Success
####Error - ETIMEOUT

####Note I use google smtp service to send mails, obiviously the network is not stable in CN /* you can use ping mail.google.com to check */,so the programme will hit the issue ETIMEOUT ==> Error Timeout sometimes,you can try to login on google mail with web browser(work for me) or use other smtp service (such as mailgrid,mailgun,qq.etc.)

Preparation

  • update emailAddress info or replace test.xlxs in root path
  • update src/parseExcel.js with current excel name or specify the column stored e-mail address
  • update src/mailContext.js with your own mail smtp service
├── index.js
├── log4js_confg.json
├── test.xlsx        **replace your excel with email-address**
├── package.json
├── .gitignore
├── README.md
├── src
│ ├── mailContext.js **update your mail-info : your smtp mail service info**
│ ├── parseExcel.js  **update excel name if excel is not named 'test.xlxs' & specify email column**
├── logs
│ ├── logs...
├── img
│ ├── imgs... 

Build

# install dependencies
npm install

# run the script
node index.js

ToDo

  • Work out a better solution to handle ETIMEOUT issue.
  • Fetch the list of return/blocked mails

(≧▽≦)/ Encourage me a start🌟 if you like it~(≧▽≦)/
(≧▽≦)/ 如果有那么一丁点儿喜欢 请随手🌟~(≧▽≦)/~啦啦啦

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.