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.
com.cordova.smtp.client
Advanced tools
Readme
Simple pluging that sends an email with or without attachments without prompt the user.
Install iOS and/or Android platform
cordova platform add ios
cordova platform add android
Install the plugin using your any plugman compatible cli
$ cordova plugin add https://github.com/albernazf/cordova-smtp-client.git
Under the plugins / com.cordova.smtp.client / www folder you will find a Typescript file to help you use the plugin (not mandatory) MailSettings.ts, if you are not using typescript there is also a javascript version of it under the same folder MailSettings.js.
On your javascript call use a code similar to this.
var mailSettings = {
emailFrom: "emailFrom@domain.com",
emailTo: "emailTo@domain.com",
smtp: "smtp-mail.domain.com",
smtpUserName: "authuser@domain.com",
smtpPassword: "password",
attachments: ["attchament1","attchament2"],
subject: "email subject",
textBody: "write something within the boddy of the email"
};
var success = function(message) {
alert(message);
}
var failure = function(message) {
alert("Error sending the email");
}
smtpClient.sendMail(mailSettings, success, failure);
The attachments is an array of strings where when using IOS the files needs to be in DATA_URI format and when Android should be the path of the file.
The return object "message" has the following structure
{
success : bool,
errorCode : int,
errorMessage : string
}
FAQs
smtpclient
The npm package com.cordova.smtp.client receives a total of 6 weekly downloads. As such, com.cordova.smtp.client popularity was classified as not popular.
We found that com.cordova.smtp.client 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.