
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
mailto-link-generator
Advanced tools
A simple utility to generate mailto
links for sending emails using Node.js.
npm install mailto-link-generator
#Usage
const mailtoLink = require('mailto-link-generator');
const options = { to: 'recipient@example.com', cc: ['cc1@example.com', 'cc2@example.com'], bcc: 'bcc@example.com', subject: 'Hello World', body: 'This is the body of the email.', };
const link = mailtoLink(options); console.log(link);
# mailto-link-generator
A simple utility to generate `mailto` links for sending emails using Node.js.
## Installation
```bash
npm install mailto-link-generator
Usage
javascript
Copy code
const mailtoLink = require('mailto-link-generator');
// Example usage
const options = {
to: 'recipient@example.com',
cc: ['cc1@example.com', 'cc2@example.com'],
bcc: 'bcc@example.com',
subject: 'Hello World',
body: 'This is the body of the email.',
};
const link = mailtoLink(options);
console.log(link);
mailtoLink(options) Generates a mailto link based on the provided options.
Parameters options (Object): An object containing email options. to (String or Array of Strings): Recipient email addresses. cc (String or Array of Strings): Carbon copy email addresses. bcc (String or Array of Strings): Blind carbon copy email addresses. subject (String): Email subject. body (String): Email body.
Using a mailto
link in HTML can expose email addresses to email harvesters and increase the likelihood of receiving spam. Here's why:
Easy Extraction:
mailto
links are easily readable by web crawlers and email harvesting bots. These automated programs scan websites for email addresses and add them to spam lists.mailto
links (e.g., <a href="mailto:example@example.com">
) makes it easy for bots to identify and extract email addresses.No Obfuscation:
mailto
links are plain text in the HTML source code. They don't provide any inherent protection against automated harvesting.Direct Connection:
mailto
links open the default email client when clicked. This direct connection between the webpage and the email client makes it easy for spammers to identify and target active email addresses.Widespread Usage:
mailto
links are commonly used for legitimate purposes, email harvesters specifically target websites and pages where these links are prevalent. Including such links in your HTML code increases the likelihood of being harvested.To minimize the risk of email harvesting and spam, consider using the VeilMail.io Mailto Link Generator . It's free. VeilMail hides your email address behind a non-intrusive form captcha that makes sure you are human and not a bot.
See it in use.
You can get reach me at https://veilmail.io/e/HyBkVK
Using a form backend service is preferable to a mailto
link for these reasons:
FAQs
Generate a mailto protocol link
The npm package mailto-link-generator receives a total of 0 weekly downloads. As such, mailto-link-generator popularity was classified as not popular.
We found that mailto-link-generator 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.