css-shim | Lightweight CSS code | Style Language library
kandi X-RAY | css-shim Summary
kandi X-RAY | css-shim Summary
Lightweight CSS code
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of css-shim
css-shim Key Features
css-shim Examples and Code Snippets
Community Discussions
Trending Discussions on css-shim
QUESTION
In my angular project, I want to use Nodemailer to send mail.
First problem is when I am trying to import ( i mean after doing npm i --save ) a lot of error occurs when i do ionic serve
. I would like to repeat one thing : just after writing the import line, this big error log comes and app crashes like that
errors are most like this missing, that not found but why ? When I did npm i --save there wasn't any error. Besides, I have no syntax error in my code . My only goal is to run the sendMail()
function.
I just don't get it what causes it? should i change nodemail
to something else? please suggest.
Error log:
...ANSWER
Answered 2020-Jul-18 at 05:24It will never work! As nodemailer
is a server-side nodejs
module, it's not meant for running inside your browser. The module require a bunch of connectivity objects to work properly which browser doesn't allow it to do so. So, at the end, you should have a backend which handle this kind of stuff.
Apart from the connectivity issues by the browser, you're at high security risk of loosing your email service
credentials! Because angular
is a client-side framework, your code is visible to the client that contains your email credentials! So anybody can decompile your code & steal which, I'm sure, you don't want.
So, try moving your email logic to the backend & be stable as well as safe!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install css-shim
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page