
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
The first objective of this package comes from the need to get a daily backup to my email with attachments. Let's say you need to back up a database every day and send a compressed file to the same email, several times a week as a cron job.
Node.js v6+
$ npm install -g mailatt
$ mailatt --version
$ npm install mailatt
$ ./node_modules/.bin/mailatt --version
To use this command, you need an SMTP address
transport with the username
and password
that you can configure with the --configure
parameter.
You will be prompted to enter the configuration :
Question | Description |
---|---|
SMTP address: | The SMTP server address |
username: | The SMTP user name |
password: | The SMTP password |
to: | The email of the recipient |
reply To: | The email to reply |
from: | The email of the sender |
subject: | The subject of the email |
html: | The body text in html format |
Example:
$ mailatt --configure
? SMTP address: smtp.example.com
? username: username
? password: password
? to: to@example.com
? reply To: from@example.com
? from: from@example.com
? subject: daily backup
? html: <h1>My Backup</h1>
The configuration was saved!
When the configuration is complete, this package uses an email template with attachments specified by his operands. You can send multiple attachments by adding multiple paths separate by space. If the email is sent successfully, you will receive a confirmation message. email sent successfully!
If not, you will get an error why. Example:
$ mailatt ./backup1.zip ./backup2.zip
email sent successfully!
Note that you can use wildcard character *
as operands to send attachments that correspond to the pattern matching. Example:
$ mailatt *.zip
email sent successfully!
Usage: mailatt [options] [file ...]
Options:
--configure configure the transport and the email fields
--version output the version number
$ npm install -g mailatt@latest
# or
$ npm install mailatt@latest
$ npm uninstall -g mailatt
# or
$ npm uninstall mailatt
FAQs
Send email attachments
The npm package mailatt receives a total of 1 weekly downloads. As such, mailatt popularity was classified as not popular.
We found that mailatt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.