Send Email using HTML + JavaScript (EmailJs Tutorial)

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

КОМЕНТАРІ • 237

  • @adumski464
    @adumski464 Рік тому +15

    After about 3 hours of researching this has not only been the most helpful video but actually works! Liked and subscribed after this one thanks mate!

  • @davidetoros755
    @davidetoros755 Рік тому +12

    You're a lifesaver. This will help me in our mini project and capstone. You earned a new subscriber. Thanks man!

  • @adrianhernandez1807
    @adrianhernandez1807 Рік тому +4

    You just made my day, after years using php, I finally did the switch to JS

  • @its-random-SHORTS
    @its-random-SHORTS Рік тому +1

    Thanks bro. Finally found a video that works after hours of searching. Gave u a like and follow because you deserve it..

  • @kalanzans
    @kalanzans Рік тому +2

    Thank you from Brazil! Direct, clean, objective... Congrats! :^)

  • @amapianozizwe3995
    @amapianozizwe3995 6 місяців тому +1

    Hi, Thanks for your content. I've been trying to get emailJS to wok 2 weeks now. All the videos I tried didn't work but yours. Just got yourself a new sub. Thanks #SouthAfrica

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

      I'm glad my tutorial helped you out.🥰

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

    Hermano, quizas no entiendas esto o siquiera lo leas, pero me salvaste la vida. Ya tenia 3 dias peleando con esto

  • @TechHaven_
    @TechHaven_ 7 місяців тому +1

    Finally a tutorial that works! thank you so much, easy like and subscribe

  • @jhonpilled
    @jhonpilled Рік тому +3

    Great tutorial

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

    Finally some solution that works with Gmail. Thanks

  • @kabahjdaniels1669
    @kabahjdaniels1669 2 місяці тому +1

    Thank you for this tutorial, it is actually working 👍

  • @WabiSabiSupport
    @WabiSabiSupport Рік тому +2

    Took time to make it work, but got it in the end!
    Fantastic tutorial, very easy to follow. Thanks!

  • @VinhNguyen-nq6iu
    @VinhNguyen-nq6iu 5 місяців тому +1

    it really worked well, thanks!

  • @MdSamir-ie7fv
    @MdSamir-ie7fv Рік тому +1

    Great video, It's really helpful....thank you so much.

  • @josealbertocastano2213
    @josealbertocastano2213 2 роки тому +1

    brilliant video mate, I followed all your steps and it worked with smtp server. thank you!

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

    Grateful for your helpful video.❤❤😍

  • @jstv5592
    @jstv5592 5 місяців тому +1

    sehr hilfreiches Video.

  • @BeyondEntertainment-X
    @BeyondEntertainment-X 2 роки тому +2

    you are the best bro much love to you😍

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

    thank you so much voran this video is totally help full for me

  • @RelaxingMusic-lk4xj
    @RelaxingMusic-lk4xj Рік тому +1

    Thats great tutorial sir!

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

    Great job!! Keep doing..🌟

  • @rpw2k23
    @rpw2k23 2 роки тому +5

    Working fine you are great sir

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

    It's working Thanks for the video ❤

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

    Thank you so much!! This helped a ton!!! Great video.

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

    Thank you, excellent tutorial !!

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

    omg!!!!!!!!!!!!! thanks a lot... it works!!!!!!!!! 🤩

  • @rajatpratapsingh3123
    @rajatpratapsingh3123 2 роки тому +1

    Great work

  • @nahuel9173
    @nahuel9173 2 роки тому +2

    Thanks man, works perfectlly

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

    Thank you Voran. Simple and useful

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

    Thank you soooooooo much for your help. keep going god bless you

  • @linosouza8871
    @linosouza8871 7 місяців тому

    Thanks for sharing.

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

    Thanks , saved my hours!

  • @pietra_gamers
    @pietra_gamers 2 роки тому +4

    Muito bom! Você sabe explicar muito bem todos os detalhes... Mesmo eu nao sabendo falar inglês, consegui entender só visualizando o que você fez! Top!

  • @slearmendoza3863
    @slearmendoza3863 2 роки тому +2

    Hey bro, thanks a lot it works.

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

    this just helped me a lot

  • @mkamranusmanipk
    @mkamranusmanipk 2 роки тому

    great work voran thanks

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

    Thanks man, you really helped me out.

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

    Thanks man very helpful.

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

    excellent!!!!

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

    Osm thank you ❤

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

    Thanks sir, a very good explanation,
    Love from India ❤❤

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

    love you man,

  • @satishbind2246
    @satishbind2246 2 роки тому

    Great 👍 work

  • @joysaha231
    @joysaha231 2 роки тому +1

    thanks bro...! it's worked.....❤❤

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

    thanks my friend!

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

    thanks man, you save my day 💪

  • @TruongThanhTho
    @TruongThanhTho 2 роки тому +1

    wonderful

  • @pawan99835
    @pawan99835 4 місяці тому

    thanks sir😇

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

    gonna try this later

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

    Thank You Very much broh...

  • @marrytushsky4652
    @marrytushsky4652 2 роки тому

    Thanks Man. You saved me

  • @Octo-BoY
    @Octo-BoY 2 роки тому +4

    Sir... Could you please upload a new video about adding attachment with this feature..... Message+attachment

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

    thank you sir 🔮

  • @rinkradio2284
    @rinkradio2284 7 місяців тому

    Thankyou very much I am looking for this and I get this thak you ❤❤❤

  • @sunnywang200
    @sunnywang200 2 роки тому +1

    Thank you very much! I followed all your steps and it works well. Could you please give another video about sending emails with attachments?

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

    Thank you so muchhhhh my first project its complet ty 😃😊

  • @muhammadnaajil9397
    @muhammadnaajil9397 2 роки тому +1

    Thanks bro worcking

    • @CodewithVoran
      @CodewithVoran  2 роки тому

      Welcome bro

    • @muhammadnaajil9397
      @muhammadnaajil9397 2 роки тому

      @@CodewithVoran hou to rimove email js website link in email please Ripley bro

    • @Voranzov
      @Voranzov 2 роки тому

      @@muhammadnaajil9397 you need to subscribe to premium plan.

  • @apoorvsharma3694
    @apoorvsharma3694 Рік тому +2

    How to make any field required?
    the normal area-required or required attributes are not working

  • @ArunK-k9l
    @ArunK-k9l Рік тому

    thnks sir

  • @KennethIsla-v7s
    @KennethIsla-v7s Рік тому

    Thank you so much!

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

    Great brother, somehow elastic mail was not working in my site, It worked, thanks

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

    THANKS its working

  • @sandeeprn6959
    @sandeeprn6959 2 роки тому

    Ur grate sir

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

    Thank you a lot

  • @markjosephortizano5084
    @markjosephortizano5084 Рік тому +2

    hi why does my index.js doesn't show "your message sent successfully" i'm just a newbie , coulde share on how i suucefully confirm my submit botton. the i follow your step. but all html code , becuase i have code already dude. my problem doesn't pop-up this alert "your message sent successfully" after i click to submit botton

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

      @@markjosephortizano5084 you missed a ;

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

    Thank you !!!!

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

    Thank you so much:)

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

    thank you so much bro

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

    Hi, thanks for this tutorial, very very helpful. How would I add form validation to ensure the email is not sent unless the required fields have been filled out?

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

    Thank you brother

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

    thanks pro really you help me thanks

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

    thank you so much !! is it possible to send pictures too? or file attachment

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

    Thanks

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

    tnx a lot

  • @5408XDD
    @5408XDD Рік тому +1

    is there any possible to change font color in the email content?

  • @williamsromero4269
    @williamsromero4269 2 роки тому

    Thanks you!

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

    can i use this for mass mailing if yes how?

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

    Muchas gracias por tu ayuda me sirvio mas que los videos en español.

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

    Well done!@code with Voran
    Mine is not working properly ,after clicking on send button my inputted data are not showing on the gmail,I don't know why

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

    Can you Make a Video on Mass Mail dispatcher

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

    thank you

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

    I added this to my webpage and all fields work but not at the same time. If I fill all three fields, nothing gets sent but if I fill in 2 or 1 at a time it works. Please help

  • @đ.anhnef
    @đ.anhnef 2 роки тому

    thank you

  • @SIVAPRIYA-x9d
    @SIVAPRIYA-x9d 28 днів тому

    this video is very helpful... but i need to know the expiry of api key in email.js

  • @LearnAndEarnTV
    @LearnAndEarnTV 2 роки тому +1

    Im having a problem. The email is sent in the gmail that I put in emailjs(which is the To email). The app doesn't send it to the email I specified in the app.

    • @anmolkaushik7543
      @anmolkaushik7543 2 роки тому

      you have to change the template. put {{to_email}} in the To email field in the template.

    • @LearnAndEarnTV
      @LearnAndEarnTV 2 роки тому

      @@anmolkaushik7543 I already figure it out. I used smtp and it's free.

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

      @@LearnAndEarnTV what smtp you're using? you need to have a host and domain to do it?

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

    Hello voran , pls after the programming, my console says
    Uncouth ReferenceError: sendmail is not defined at htmlButtonElement .onclick (email.html:49:66.
    Pls what's the causes

  • @lotherwick3197
    @lotherwick3197 2 роки тому +2

    hello sir i have problem about your code after i try your tutorial. it when i fill my column name and message the email was send but when i try to fill my column email with column name and message it does't send any message email to my email. it more weird when i try to fill email column without fill any column (name and message) it can send it to my gmail and after i see the console it was said t "{status: 200, text: 'OK'}"

    • @mehdijafari2418
      @mehdijafari2418 2 роки тому

      I have the same issue. When filling all columns it doesn't work.

    • @sk..395
      @sk..395 Рік тому +2

      function sendMail(){
      var params= {

      name: document.getElementById("name").value,
      email:document.getElementById("email").value,
      message: document.getElementById("message").value,
      };

      const serviceID = ""; //Enter your serviceID inside the double quotes
      const templateID = ""; //Enter your templateID inside the double quotes
      if
      (document.getElementById("name").value=="")
      {
      alert("Your name field is empty");
      return false;
      }
      else if
      (document.getElementById("email").value=="")
      {
      alert("Your email is empty");
      return false;
      }
      else if
      (document.getElementById("message").value=="")
      {
      alert("Your message is empty");
      return false;
      }
      else {
      emailjs
      .send(serviceID,templateID,params)
      .then //empty the fields
      (document.getElementById("uname").value="",
      document.getElementById("email").value="",
      document.getElementById("message").value="")
      alert("Message sent successfully")
      }
      }

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

    Not working as I don't use Bootstrap. It seems the divs with "form-group" and h5s with "for="message" etc. are the problem. I'm using the tags. Can anyone advise how I can still execute the sendMail function?

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

    thanks man

  • @mahdijafari5338
    @mahdijafari5338 2 роки тому +1

    Hi Voran. Really adorable and useful video. Thanks man.
    I have sent an email could you please reply. Thank you for your help.

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

    hi there. My code is working properly but when I put a @ in gmail it doesn't work without @ it work properly...... Please help me about this Thank you

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

    Sir it only send the empty message if i send any name email it is not responding ,how to solve it

  • @ayeshaabobakr5610
    @ayeshaabobakr5610 2 роки тому +1

    Hello.. I have an error in the Service_id even though it has been copied from the site.. Please help me

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

    How can i lock the button, and unlock when all is filled?

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

    Can I direct the user to a specific link instead of showing the alert?

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

    Hi, I tried this on a message submission and it is throwing this error. Please any help? {
    "status": 412,
    "text": "Gmail_API: Recipient address required"
    }

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

    😀Did not work for me as well. the script is not responding at all even after checking every single details for about 4 hours nothing.

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

      You can check the source code in the description.

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

      @@CodewithVoran nice video bro, but it didn't work for me to, followed the video to the letter. Nothing even displays in the console so as to have an idea what the problem is.

  • @vladimiruchiha4420
    @vladimiruchiha4420 11 місяців тому +1

    is emailjs safe? can i use formsubmit instead?

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

      Yes. But you need to prevent reloading.

    • @CodewithVoran
      @CodewithVoran  11 місяців тому +1

      Indeed, someone could copy your keys (a well-known issue of any public API), but they will only be able to send your templates with your content, and they will not be able to send a custom email with their content (spam), which is not interesting for spammers

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

      @@CodewithVoran thanks a lot for explaining me🫂

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

    for me its giving error emailjs is not defined??pls reply???

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

      You might have made mistakes in cdn. Make sure you use the correct cdn link

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

    Respected Sir,
    Kindly Post Video about "Website Home page web banner slides -5 slides moving horizontally by clicking left or right arrow icon"... Post html css javascript code or make live video and post it...