salvozappa / pipe-mail Goto Github PK
View Code? Open in Web Editor NEWA tool to easily send e-mails from the command line
License: MIT License
A tool to easily send e-mails from the command line
License: MIT License
Hi there,
I've got following issue when trying to send a mail via pipe-mail
#!/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 ;)
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
-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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.