New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quick-mail

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quick-mail - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "quick-mail",
"version": "1.0.2",
"version": "1.0.3",
"description": "quick-mail is a powerful and flexible email automation library designed for Javascript applications. It enables developers to easily send bulk emails with variant subjects and content using different or customized HTML templates. This library simplifies the process of managing and automating email campaigns, making it ideal for marketing, notifications, and other automated email tasks.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,1 +0,62 @@

"# quick-mail"
# quick-mail
quick-mail is a powerful and flexible email automation library designed for Javascript applications. It enables developers to easily send bulk emails with variant subjects and content using different or customized HTML templates. This library simplifies the process of managing and automating email campaigns, making it ideal for marketing, notifications, and other automated email tasks.
## Installation
To install the package, use npm or yarn:
````bash
npm install quick-mail
or
```bash
yarn add quick-mail
````
## Usage
To use the quick-mail package, import the sendEmail function and provide the necessary email details:
const quickMail = require("quick-mail");
quickMail.sendEmail({
from: "your-email@gmail.com",
to: "recipient-email@example.com",
subject: "This Email is about testing NPM",
text: "Success",
password: "your-email-password",
html: ` <!DOCTYPE html>
<html>
<head>
<style>
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }
.container { width: 100%; max-width: 600px; margin: auto; padding: 20px; background: #f4f4f4; }
.header { background: #333; color: #fff; padding: 10px; text-align: center; }
.content { background: #fff; padding: 20px; border-radius: 5px; }
.footer { text-align: center; padding: 10px; background: #333; color: #fff; font-size: 12px; }
@media (max-width: 600px) { .container { padding: 10px; } }
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Welcome to Our Service</h1>
</div>
<div class="content">
<h2>Hello, User!</h2>
<p>This is a test email.</p>
</div>
<div class="footer">
<p>&copy; 2024 Your Company. All rights reserved.</p>
</div>
</div>
</body>
</html>
`
}).then(response => {
console.log('Email sent:', response);
}).catch(error => {
console.error('Error sending email:', error);
});
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