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.
construct-mobile-smtp
Advanced tools
Readme
Basic SMTP client cordova plugin for editing and sending email messages.
Install iOS and/or Android platform
cordova platform add ios
cordova platform add android
Install the plugin using any plugman compatible cli
$ cordova plugin add construct-mobile-smtp
On Javascript, use code that is similar to the following.
let mailSettings = {
"smtp": "smtp-mail.domain.com",
"smtpUserName": "authuser@domain.com",
"smtpPassword": "password",
"emailFrom": "emailFrom@domain.com",
"emailTo": "emailTo@domain.com",
"emailCC": "emailTo@domain.com",
"emailBCC": "emailTo@domain.com",
"subject": "email subject",
"textBody": "write something within the body<b>Hello world?<img src=\"cid:image.png\"></b> of the email",
"priority": "normal"
"attachmentsName": ["image.png"],
"attachmentsRole": ["2"],
"attachmentsType": ["image/png"],
"attachmentsBase64": ["iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAARSURBVDhPYxgFo2AUQAEDAwADEAABuGyTOQAAAABJRU5ErkJggg=="]
};
let success = function(message) {
alert("OK")
}
let failure = function(message) {
alert("Error sending the email");
}
window.smtpClient.sendMail(mailSettings, success, failure);
priority: "low" or "normal" or "high"
The attachments has 4 array.
Name, Role, Type, Base64
attachmentsName: file name with extension
attachmentsRole: in string format "0" or "1" or "2"
"0" is normal attachment <br />
"1" attachment only available email (useful for pictures) in cid link (Content-ID header) e.g. <img src=\"cid:image.png\">
"2" attachment behave normal and available as cid link
attachmentsType: MIME type in string
attachmentsBase64: content in Base64 string
Method result call failed or success callback function.
The library was originally written by albernazf (cordova-smtp-client) and later modified by Nelson Medina Humberto (cordova-smtp-client).
On iOS it makes use of the skpsmtpmessage library, which was originally written by Ian Baird. A recent fork can be found on (skpsmtpmessage).
FAQs
Basic SMTP client for editing and sending email messages
The npm package construct-mobile-smtp receives a total of 3 weekly downloads. As such, construct-mobile-smtp popularity was classified as not popular.
We found that construct-mobile-smtp 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.