
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-native-smtp
Advanced tools
$ npm install react-native-smtp --save
$ react-native link react-native-smtp
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-smtp
and add Smtp.xcodeproj
libSmtp.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainApplication.java
import com.reactlibrary.SmtpPackage;
to the imports at the top of the filenew SmtpPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-smtp'
project(':react-native-smtp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-smtp/android')
android/app/build.gradle
:
compile project(':react-native-smtp')
import EmailSender from 'react-native-smtp';
// Configuration
EmailSender.config({
host: 'smtp.host.io',
port: '465', // Optional. Default to 465
username: 'username',
password: 'password',
isAuth: 'true', // Optional. Default to `true`
tls: 'true' // Optional. Default to `true`
});
/*
* Used react-native-fs module to get file path.
* Keep this array empty if there is no attachment.
*/
const attachments = [
RNFS.ExternalStorageDirectoryPath + '/Tracklist/file.txt',
RNFS.ExternalStorageDirectoryPath + '/Tracklist/file_2.txt',
];
// Now send the mail
EmailSender.send(
{
from: 'from@email.com',
to: 'to@email.com,another@email.com',
subject: 'The subject',
body: '<h3> Cool Body </h3>',
replyTo: 'reply@email.com' // Optional
},
attachments, // This second parameter is mandatory. You can send an empty array.
);
FAQs
This module will allow you to send email via SMTP.
The npm package react-native-smtp receives a total of 1 weekly downloads. As such, react-native-smtp popularity was classified as not popular.
We found that react-native-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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.