Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
sendpalm
Advanced tools
Readme
npm install sendpalm
Register an account at https://sendpalm.com/, and then get your auth token on the https://sendpalm.com/api page
Use in file:
//ES6
import Email from 'sendpalm'
//CommonJS
//const Email = require('sendpalm')
const email = new Email("your token")
// Email Verify
async function verify() {
const result = await email.verify("email address")
console.log(result)
}
// Send transactional emails
async function send() {
const result = await email.send(fromEmail, toEmail, subject, content, templateParams)
console.log(result)
}
// Campaign sending
async function sendCampaign() {
const result = await email.sendCampaign(fromEmail, toEmail, subject, campaignId, templateParams)
console.log(result)
}
// Email verify with params
async function verifyWithParams(){
const params = {
fromEmail: "fromEmail",
listId: "listId",
phone: "phone",
toEmail: "toEmail",
};
const result = await email.verifyWithParams(params);
console.log(result)
}
// Send transactional emails with params
async function sendWithParams() {
const params = {
fromEmail: "fromEmail",
toEmail: "toEmail",
subject: "Welcome use SendPalm Email API",
content: "Hi All,Welcome use SendPalm Email API",
templateParams: {"campany":"SendPalm Inc."},
delay: 20,//minutes
};
const result = await email.sendWithParams(params);
console.log(result);
}
// Campaign sending with params
async function sendCampaignWithParams() {
const params = {
fromEmail: "fromEmail",
toEmail: "toEmail",
subject: "Welcome use SendPalm Email API",
campaignId: "1234",
templateParams: {"campany":"SendPalm Inc."},
delay: 20,
};
const result = await email.sendCampaignWithParams(params);
console.log(result);
}
// New Audience with params
async function newAudienceWithParams() {
const params = {
email: "email",
fullname: "test",
listId: "listId",
phone: "1212121212"
}
const result = await email.newAudienceWithParams(params);
console.log(result);
}
// Verify email with your webhook
async function verifyWithWebhook() {
const params = {
fromEmail: "fromEmail",
listId: "listId",
phone: "phone",
toEmail: "toEmail",
webhook_url: "your url",
}
const result = await email.verifyWithWebhook(params);
console.log(result);
}
// Find mail with Domain
async function findWithDomain() {
const params = {
domain:"domain.com",
}
const result = await email.findWithDomain(params);
console.log(result);
}
// Find mail with name
async function findWithName() {
const params = {
first_name: "first_name",
last_name: "last_name",
domain: "domain.com",
}
const result = await email.findWithName(params);
console.log(result);
}
For example, the verification email is service@sendpalm.com:
[
{
"input": "service@sendpalm.com",
"is_reachable": "safe",
"misc": {
"is_disposable": false,
"is_role_account": true
},
"mx": {
"accepts_mail": true,
"records": [
"m1.feishu.cn."
]
},
"smtp": {
"can_connect_smtp": true,
"has_full_inbox": false,
"is_catch_all": false,
"is_deliverable": true,
"is_disabled": false
},
"syntax": {
"address": "service@sendpalm.com",
"domain": "sendpalm.com",
"is_valid_syntax": true,
"username": "service"
}
}
]
is_reachable field
= Email deliverabilityFor each email, SendPalm gives a confidence score in terms of deliverability in the is_reachable field. This field can take 4 values:
safe
: We guarantee a hard bounce rate lower than 2%. Bounce rates may still happen, because we connect to the email's SMTP server from a different IP address than you, and yours might be blacklisted.invalid
: We guarantee with a confidence of 99% that this email is not deliverable.risky
: The email address appears to exist, but has quality issues that may result in low engagement or a bounce. We don't recommend sending to these emails, and don't commit on an accuracy rate.unknown
: It might happen on rare occasions that the email provider doesn't allow real-time verification of emails. In this case, there's unfortunately nothing Reacher can do. Please let us know if this happens, we're working on finding ways to solve these issues, which in most occasions are solved on a case-by-case basis.If the 4 variants of the is_reachable field is not enough for your use case, then you can look into the other fields, which provide more details about the email address.
When you input an email address, Reacher starts analyzing the email in 4 areas.
FAQs
SendPalm Email Api
The npm package sendpalm receives a total of 10 weekly downloads. As such, sendpalm popularity was classified as not popular.
We found that sendpalm 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.