Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pixl-mail

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixl-mail - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

4

mail.js
// Simple SMTP Email Sender
// Copyright (c) 2015 Joseph Huckaby
// Copyright (c) 2015 - 2019 Joseph Huckaby
// Released under the MIT License

@@ -62,3 +62,3 @@

// perform placeholder substitution on body
if (args) data = Tools.substitute( data, args );
if (args) data = Tools.sub( data, args );

@@ -65,0 +65,0 @@ // fix line endings

{
"name": "pixl-mail",
"version": "1.0.8",
"version": "1.0.9",
"description": "A very simple class for sending e-mail via SMTP.",

@@ -22,5 +22,5 @@ "author": "Joseph Huckaby <jhuckaby@gmail.com>",

"dependencies": {
"nodemailer": "^4.4.1",
"pixl-tools": ">=1.0.0",
"pixl-class": ">=1.0.0"
"nodemailer": "4.7.0",
"pixl-tools": "^1.0.19",
"pixl-class": "^1.0.0"
},

@@ -27,0 +27,0 @@ "devDependencies": {

# Overview
This module provides a very simple e-mail sender, which leans heavily on the awesome [nodemailer](https://nodemailer.com/) package. It layers on the ability to pass in a complete e-mail message with headers and body in one string (or file), and optionally perform placeholder substitution using [substitute()](https://www.npmjs.com/package/pixl-tools#substitute) from the [pixl-tools](https://www.npmjs.com/package/pixl-tools) package. Auto-detects HTML or plain text e-mail body, and supports custom headers and attachments as well.
This module provides a very simple e-mail sender, which leans heavily on the awesome [nodemailer](https://nodemailer.com/) package. It layers on the ability to pass in a complete e-mail message with headers and body in one string (or file), and optionally perform placeholder substitution using [sub()](https://www.npmjs.com/package/pixl-tools#sub) from the [pixl-tools](https://www.npmjs.com/package/pixl-tools) package. Auto-detects HTML or plain text e-mail body, and supports custom headers and attachments as well.

@@ -46,3 +46,3 @@ # Usage

The library supports a simple e-mail templating system, where you can insert `[bracket_placeholders]` in your e-mail message, and have the library fill them with appropriate content from a separate object. This feature uses the [substitute()](https://www.npmjs.com/package/pixl-tools#substitute) function from the [pixl-tools](https://www.npmjs.com/package/pixl-tools) package.
The library supports a simple e-mail templating system, where you can insert `[bracket_placeholders]` in your e-mail message, and have the library fill them with appropriate content from a separate object. This feature uses the [sub()](https://www.npmjs.com/package/pixl-tools#sub) function from the [pixl-tools](https://www.npmjs.com/package/pixl-tools) package.

@@ -83,3 +83,3 @@ As an example, imagine a welcome e-mail for a new user who has signed up for your app. You have the welcome e-mail "template" stored separately, and want to fill in the user's e-mail address, full name and username at sending time. Here is how to do this:

You can actually use a complex hash / array tree of arguments, and then specify `[/filesystem/style/paths]` in your placeholders. See the [substitute()](https://www.npmjs.com/package/pixl-tools#substitute) docs for details.
You can actually use a complex hash / array tree of arguments, and then specify `[filesystem/style/paths]` or `[dot.style.paths]` in your placeholders. See the [sub()](https://www.npmjs.com/package/pixl-tools#sub) docs for details.

@@ -169,5 +169,5 @@ ## Loading From Files

The MIT License (MIT)
**The MIT License (MIT)**
Copyright (c) 2015 - 2017 Joseph Huckaby.
*Copyright (c) 2015 - 2019 Joseph Huckaby.*

@@ -174,0 +174,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc