我通过nodemailer发送电子邮件,如果我从本地服务器运行,它进入Gmail的收件箱,但如果我从microsoft azure服务器运行脚本,则进入gmail的垃圾邮件.以下是我的脚本
var nodemailer = require('nodemailer');
var EmailTemplates = require('swig-email-templates');
var smtpConfig = {
service: 'smtp.office365.com',
host: 'smtp.office365.com',
port: 587,
starttls: {
enable: true
},
secureConnection: true,
auth: {
user: 'xxxxx@yyyy.com',
pass: 'zzzzzz'
}
}
var templates = new EmailTemplates();
var transporter = nodemailer.createTransport(smtpConfig);
var context = {
username:'Rajesh',
email:'xxxxx@gmail.com',
link : 'www.google.co.in'
};
templates.render('activate_email.html', context, function(err, html,text, subject) {
transporter.sendMail({
from: '"Product Name" <no-reply@xxxxx.com>', // sender address
to: 'xxxx@gmail.com',
subject: 'Account activation',
html: html,
text:text
});
});
Run Code Online (Sandbox Code Playgroud) 在 React Native 中,在应用程序启动之前,我们可以看到白屏。我想在单击应用程序图标时立即加载启动屏幕。我想避免白色背景。
使用react-native-splash-screen我们可以做到这一点,但它只支持png,不支持lottie动画。有什么解决办法吗?
我已经使用天才聊天库在 React Native 中开发了聊天视图。但我想在点击聊天气泡时执行删除操作。
我尝试过自定义 renderCustomView 、lightboxProps 和 onLongPress 道具,但都没有工作。
react-native ×3
chat ×1
email ×1
gmail ×1
native ×1
node.js ×1
nodemailer ×1
reactjs ×1
screen ×1
spam ×1