mailslurp-examples - nodejs-smtp-email-attachments-test

https://github.com/mailslurp/examples

Table of Contents

nodejs-smtp-email-attachments-test/package.json

{
  "name": "nodejs-smtp-email-attachments-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "qunit"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "isomorphic-fetch": "^3.0.0",
    "mailslurp-client": "^15.4.5",
    "qunit": "^2.17.2"
  }
}

nodejs-smtp-email-attachments-test/README.md

# Email testing
See [examples repository](https://github.com/mailslurp/examples) for source.

nodejs-smtp-email-attachments-test/My-Data_with-specialName.csv

"LatD", "LatM", "LatS", "NS", "LonD", "LonM", "LonS", "EW", "City", "State"
   41,    5,   59, "N",     80,   39,    0, "W", "Youngstown", OH
   42,   52,   48, "N",     97,   23,   23, "W", "Yankton", SD
   46,   35,   59, "N",    120,   30,   36, "W", "Yakima", WA

nodejs-smtp-email-attachments-test/Makefile

-include ../.env

.PHONY: test

node_modules:
	npm install

test: node_modules
	API_KEY=$(API_KEY) PATH_TO_ATTACHMENT=$(PWD)/My-Data_with-specialName.csv npm t