我想问一些关于 nodemailer 的问题,我编写的代码如下
Var client = nodemailer.createTransport ({
Service: 'gmail',
Auth: {
User: 'example@gmail.com', // Your email address
Pass: '123' // Your password},
Tls: {rejectUnauthorized: false}
});
Run Code Online (Sandbox Code Playgroud)
这有效,但在成功交付后,当我必须接收已发送的电子邮件时,我需要启用 Gmail 设置,例如“允许安全性较低的应用程序访问”。我不想设置它。
那么我如何从 example@gmail.com 发送电子邮件到 example1@gmail.com,而不设置“允许安全性较低的应用程序访问”并直接在邮箱中接受消息!!???或者应该添加任何其他插件?
谢谢;)
我有一些这样的用户数据
id | username | email
1 | test | test@test.com
2 | om | test2@test2.com
3 | aa | test3@test3.com
Run Code Online (Sandbox Code Playgroud)
我有这样的数据用户生物数据
id | username | bio
1 | test | test
2 | om | test2
Run Code Online (Sandbox Code Playgroud)
所以,我想使用 not in 与内连接来显示数据where user.username not in biodata.username,我尝试这样做,但这是错误的
select user.*, biodata.* from user inner join biodata on user.username = biodata.username where user.username not in biodata.username;
Run Code Online (Sandbox Code Playgroud)
那么,如何使用它呢?