Giter Club home page Giter Club logo

nodemailer-examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nodemailer-examples's Issues

Error: unable to get local issuer certificate

ERROR: Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:394:28)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) {
code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'

Form is not posting.

I even copied and pasted exact code but I get same error:

jquery-3.3.1.min.js:2 POST http://localhost:3000/email 404 (Not Found)

Since I log the ajax requests on console, I also get this:
jquery-3.3.1.min.js:2 XHR failed loading: POST

I tested jquery with different commands and jquery is working fine.
I thought issue might be because of parsing data, so I installed body-parser module didnt help.
Since I saw the ajax error, I was suspecting cross origin policy error. So I added some code to circumvent cross origin policy, I got this error:

:3000/email:1 Failed to load resource: the server responded with a status of 404 (Not Found)

Email not sent after making required changes

I used the sendFormEmail logic and tried to send an email but it did not work. My changes are

  • added name section before email section
  • removed .env file entirely and require('dotenv').config(); . I did the same with your code and it worked perfectly.

Link to my repository. Check About folder for js files.

ERR_INVALID_ARG_TYPE "path"

after doing what instructed my email fails to send and returns this error.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:120:11)
at Object.resolve (path.js:980:7)
at ExpressHandlebars._resolveLayoutPath (/home/marvic/Documents/email_schedule/node_modules/nodemailer-handlebars/node_modules/express-handlebars/lib/express-handlebars.js:342:17)
at ExpressHandlebars. (/home/marvic/Documents/email_schedule/node_modules/nodemailer-handlebars/node_modules/express-handlebars/lib/express-handlebars.js:223:35) {
code: 'ERR_INVALID_ARG_TYPE'

am i doing something wrong???

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.