Coder Social home page Coder Social logo

pipe-mail's People

Contributors

salvozappa avatar thewebmachine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

thewebmachine

pipe-mail's Issues

pipe-mail intialization crashes

Hi there,

I've got following issue when trying to send a mail via pipe-mail

script

#!/bin/bash

function sendMail() {
export PIPEMAIL_SMTP_HOST=smtp.gmail.com
export PIPEMAIL_SMTP_PORT=587
export PIPEMAIL_SMTP_USER=
export PIPEMAIL_SMTP_PASSWORD=

toAddress=$1
subject=$2
export PIPEMAIL_FROM=<from_address>
message=$3

echo "To: "$toAddress
echo "Subject: "$subject
echo "Message: "$message
tempFile=$(mktemp)
echo "${message}" > $tempFile
$(/usr/local/bin/pipe-mail -s "${subject}" "{$toAddress}" < $tempFile)
rm $tmpFile

}
sendMail <to_address> "Testmail" "This is a test!"

the are of course filled correctly ;)

OUTPUT

To: <to_address>
Subject: Testmail
Message: This is a test!
/usr/local/lib/node_modules/pipe-mail/lib/createTransporter.js:2
const nodemailerOptions.host = options.host;
^^^^^^^^^^^^^^^^^

SyntaxError: Missing initializer in const declaration
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/usr/local/lib/node_modules/pipe-mail/index.js:12:27)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)


(program exited with code: 1)
Press return to continue

Do you have any clue? I installed via npm and I'm using node v10.24.0 -> maybe it's incompatible!?

Thanks in advance for any help.

Best regards

Daniel

Unable to use SMTP servers that do NOT require username/password

-u and -p are required, precluding use with SMTP servers that are using IP filtering (on a VPN for example) instead of traditional user/pass authentication.

Are you still able to actively work on this or should we fork and attempt to correct this ourselves? Thanks for any feedback you can provide.

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.