How to Build Contact Forms with Next.js 13, React and Tailwind css

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ •

  • @bloozblooz
    @bloozblooz 11 місяців тому

    Where can I find the contact.js in the blog?
    What is the content of .env.local?

  • @maxskewes
    @maxskewes Рік тому +1

    Thank you. I was so caught up trying to learn to transition to the route.js file and the app directory in the new Nextjs will nothing but failure after failure. Didn't think to just move it out altogether and not bother with it.

  • @wolfie8748
    @wolfie8748 5 місяців тому

    but this is basically me messaging me ?
    when I check who sent the email it is the user we entered so how can random people mail me for my portfolio website?

  • @veera1_8_001
    @veera1_8_001 10 місяців тому

    what should i add in dotenv file??

  • @husienadel
    @husienadel Рік тому

    Thanks man, I struggle 2 days to make nodemailer works eps for nextjs 14 but it works well now !

  • @martinvega1452
    @martinvega1452 Рік тому

    How i can implement with mongodb and nodemailer?

  • @dummymail2495
    @dummymail2495 Рік тому +1

    Error as
    No http methods exported in contact.js

  • @xXxDudexAwesomeXx
    @xXxDudexAwesomeXx Рік тому +1

    i keep getting error 404 on /api/contact even tho i've added the folder/file inside of pp directory (nextjs13)

    • @tinomen09
      @tinomen09 Рік тому

      Same here, been trying to fix this

    • @adamrichardsondev
      @adamrichardsondev  Рік тому +1

      Are you inside pages or /app directory? In app you would use /app/api/contact/route.ts and in pages /pages/api/contact.js
      There is slightly different syntax for route handler in app directory too which you can lookup route handlers

    • @tinomen09
      @tinomen09 Рік тому

      I solved the problem by having the /app directory outside the /src directory.

  • @dennisf1993
    @dennisf1993 9 місяців тому

    Thanks a lot, that really helped! Another question... how do you get those auto suggestions in vs code? :D

  • @michaelwood6410
    @michaelwood6410 Рік тому +1

    What do i need to add to my .env.local file?

    • @albinmiftari1832
      @albinmiftari1832 Рік тому

      Im guessing the emails username and password.
      Yours that will send the message.

  • @rhywive
    @rhywive 11 місяців тому

    Extensive video, thanks!

  • @geminiatwork
    @geminiatwork Рік тому +1

    Hi Adam, do you know how to send attachment like .pdf via contact form using App router?

    • @radekkojtych7675
      @radekkojtych7675 Рік тому

      I was going to ask about the same. Did you figure it out maybe??? I'm trying to find a solution. Thank you.

  • @kevinmagron9032
    @kevinmagron9032 Рік тому +1

    What needs to be included in the .env file?
    Would this be enough?
    DB_USER=mymail
    DB_PASS=password

  • @mmtrrz
    @mmtrrz Рік тому +1

    Which coding assistant you're using? It's just awesome.

  • @sallyjuniper7752
    @sallyjuniper7752 Рік тому

    having an absolute nightmare with this, been getting endless 404's back from my routes - even in postman, no matter how i configure the url

  • @shireenkhan7569
    @shireenkhan7569 6 місяців тому

    Sending to server logic starts here 12:41

  • @excybeats5321
    @excybeats5321 Рік тому

    it works thank man

  • @szymonlubinski1679
    @szymonlubinski1679 Рік тому

    Thanks a lot everything works !