'os.networkInterfaces is not a function and Nodemailer
Once I add the following code to my Angular project I get the 'os.networkInterfaces is not a function', but I do not know how to solve this and still use Nodemailer.
location: index.js - const networkInterfaces = (module.exports.networkInterfaces = os.networkInterfaces());
var nodemailer = require('nodemailer');
let transporter = nodemailer.createTransport({
host: 'smtp.hostinger.com',
port: 453,
auth: {
user: 'xx',
pass: 'xxx'
}
});
let mailOptions = {
from: 'ixxx',
to: '[email protected]',
subject: 'Sending Email using Node.js',
text: 'That was easy!'
};
appreciate the help!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
