小编Raj*_*sit的帖子

通过nodemailer发送的电子邮件进入垃圾邮件以获取Gmail

我通过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)

email gmail spam node.js nodemailer

11
推荐指数
4
解决办法
7173
查看次数

我想在闪屏+React Native中播放lottie动画

在 React Native 中,在应用程序启动之前,我们可以看到白屏。我想在单击应用程序图标时立即加载启动屏幕。我想避免白色背景。

使用react-native-splash-screen我们可以做到这一点,但它只支持png,不支持lottie动画。有什么解决办法吗?

native screen splash-screen reactjs react-native

5
推荐指数
1
解决办法
1987
查看次数


如何在单击气泡触摸时删除消息?React Native 天才聊天库

我已经使用天才聊天库在 React Native 中开发了聊天视图。但我想在点击聊天气泡时执行删除操作。

我尝试过自定义 renderCustomView 、lightboxProps 和 onLongPress 道具,但都没有工作。

chat react-native react-native-gifted-chat

0
推荐指数
1
解决办法
1407
查看次数