how to send mail using html css and javascript

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024
  • create working contact form using Html Css Javascript
    I have shown in this video how to send mail help of smtp.js.
    important settings for Gmail
    1. two-step verification on
    2. create app password Gmail
    smtp.js -- smtpjs.com/
    Modified this video please watch --
    • Create a Working Conta...
    Thanks for watching!
    Make sure to like + Subscribe For More
    ☕️ Support me, buy me a coffee
    www.buymeacoff...
    #codewithsanjoy #smtp.js #contactform

ความคิดเห็น • 89

  • @xilado4254
    @xilado4254 2 ปีที่แล้ว +13

    For those who asked themselves why it was working 6 Months ago but not now...Due to hacking attacks SMTPJS is no longer trusted by every mail provider besides one no name commercial provider, furthermore has Google changed their privacy rules...to third party programms its no longer permitted to access the email via smtp, but it works perfectly fine with other ones like outlook and gmx

    • @xilado4254
      @xilado4254 2 ปีที่แล้ว +2

      Easy Alternative would be phpmailer Programmed in php, works perfectly fine and its easy to use(html emails are possible and easy to Include)

    • @Cvtech-c6r
      @Cvtech-c6r 7 วันที่ผ่านมา

      Dans ce cas envoyer les informations via watsapp par exemple je pense que ça sera plus facile . Qu'en pensez vous

    • @Cvtech-c6r
      @Cvtech-c6r 7 วันที่ผ่านมา +1

      ​@@xilado4254merci beaucoup

  • @akki_the_tecki
    @akki_the_tecki 2 ปีที่แล้ว +3

    Finally end of the day!!! One Working SMTP project (y) tysm bro!

  • @geniels56
    @geniels56 2 ปีที่แล้ว +9

    Why it's not working?
    This pops out when I press my button
    Only elasticemail is supported as an SMTP host.

  • @Cet.w1p
    @Cet.w1p ปีที่แล้ว

    Thank you for helping me that works without problems

  • @sassongabai6844
    @sassongabai6844 2 ปีที่แล้ว +1

    Finally something that works ! THANK YOU

    • @sassongabai6844
      @sassongabai6844 2 ปีที่แล้ว +1

      @Lilian Shuan It's not, it's asking for me to use elasticmail hostname now ..

    • @sassongabai6844
      @sassongabai6844 2 ปีที่แล้ว

      @Lilian Shuan I have manages overcome this issue, but I’m using C# for that purpose and it’s not longer via Javascript ..

    • @ouza1430
      @ouza1430 2 ปีที่แล้ว +1

      @Lilian Shuan i have the same problem

  • @suryakantkhute4249
    @suryakantkhute4249 2 ปีที่แล้ว +5

    Thanks for uploading... your all videos are awesome ❤️

  • @abhishekanand7481
    @abhishekanand7481 ปีที่แล้ว

    thanku sir👍👍

  • @Yakuza13329
    @Yakuza13329 2 ปีที่แล้ว +12

    I appreciate that you should enable 2-step authentication, but having the password openly in your html for anyone to see on your website seems a bit risky. Don't you think?

    • @codewithsanjoy
      @codewithsanjoy  2 ปีที่แล้ว +3

      SMTP.js has the option to create a security token.
      create the token help of user gmail name and app password.
      Email.send({
      SecureToken : "C973D7AD-F097-4B95-91F4-40ABC5567812",
      Host: "smtp.gmail.com",
      To: 'bestcodersanjoy@gmail.com',
      From: email,
      Subject: subject,
      Body: body
      }).then(
      message => alert(message)
      );

    • @aytech6867
      @aytech6867 2 ปีที่แล้ว +1

      @@codewithsanjoy dear I use the same as you mentioned using secure token and get . Secure token not valid

    • @sayakrana3984
      @sayakrana3984 2 ปีที่แล้ว

      Same problem

    • @Cvtech-c6r
      @Cvtech-c6r 7 วันที่ผ่านมา

      Je suis carrément d'accord

  • @oYwyh
    @oYwyh 2 ปีที่แล้ว

    bro thank you very much, you are a legend

  • @mdhasiburrahmannafiz9984
    @mdhasiburrahmannafiz9984 2 ปีที่แล้ว

    Thank you, Thank you so much.
    It’s working

  • @ITGUY-b9u
    @ITGUY-b9u 2 ปีที่แล้ว +3

    thanks for your video but I am really wondering if it is safe to put your password in JavaScript code

    • @missulu
      @missulu 2 ปีที่แล้ว +1

      It isn't!lol!

  • @hadobassanyi9105
    @hadobassanyi9105 2 ปีที่แล้ว +1

    BRO YOU EARNED A F*CKING NEW SUBSCRIBER, I LITERALLY WATCHED LIKE 600 VIDEOS, AND YOURS FINALLY HELPED ME OUT!

  • @Rohitkumar-fz3zw
    @Rohitkumar-fz3zw 2 ปีที่แล้ว

    Thank you so much keep up the good work!!

    • @vaivaicomputer5836
      @vaivaicomputer5836 2 ปีที่แล้ว

      Hello, why didn't it work for me and tell me the following
      Uncaught TypeError: Email.send is not a function

  • @chinobotomyoka123
    @chinobotomyoka123 2 ปีที่แล้ว

    it's working .. thank you

  • @andymonti4563
    @andymonti4563 2 ปีที่แล้ว

    thanks you man!!!

  • @nikolarakocevic240
    @nikolarakocevic240 2 ปีที่แล้ว +1

    Thanks. This video is great.pls can you tell me how to add form:choose file and send that file on email. Thank you :)

    • @codewithsanjoy
      @codewithsanjoy  2 ปีที่แล้ว

      I will come up with this kind of video
      please wait ...

    • @nikolarakocevic240
      @nikolarakocevic240 2 ปีที่แล้ว

      @@codewithsanjoy Tnx.and maybe some checkbox add :)

  • @mahreenasama8012
    @mahreenasama8012 2 ปีที่แล้ว +3

    This is not working at all in my browser (Firefox) 😢 please help
    SMTP not supporting gmail platform

    • @yassinemaataoui5672
      @yassinemaataoui5672 2 ปีที่แล้ว

      the same problem, not only in Firefox

    • @mahreenasama8012
      @mahreenasama8012 2 ปีที่แล้ว

      @Nikola Kapetanovic what I researched about it that Google has made Gmail platform more secure and that enabling option in Gmail settings in no longer available for users. I request you to tell some other solution if you can.

  • @swathikushi1197
    @swathikushi1197 2 ปีที่แล้ว +1

    Is this code will work only in local or we can use the same code in the server also??

  • @madhanarts2190
    @madhanarts2190 2 ปีที่แล้ว

    hi bro
    working fine , i need to clear the input field

  • @Henry_Nunez
    @Henry_Nunez 2 ปีที่แล้ว

    👏👏👏👈 🔔

  • @hunt3r587
    @hunt3r587 10 หลายเดือนก่อน

    I have an error when I try to submit. It says that "Only elasticemail is supported as an SMTP host." I did an account but is still not working. I will thankfull if you help me.

  • @ouza1430
    @ouza1430 2 ปีที่แล้ว +1

    Thank you for this, but I get an error, smtp server must be with elasticmail... thoughts??

    • @arafnokib2559
      @arafnokib2559 2 ปีที่แล้ว +1

      this is what i keep on getting too!

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      Check my new modified video.
      I hope you can understand
      tutorial link
      th-cam.com/video/E4SL1ymKz00/w-d-xo.html&ab_channel=CodeWithSanjoy

  • @wes_333
    @wes_333 ปีที่แล้ว +1

    you can easily get hacked if someone just looks up the source code?

    • @Cvtech-c6r
      @Cvtech-c6r 7 วันที่ผ่านมา

      Je te jure

  • @aytech6867
    @aytech6867 2 ปีที่แล้ว +1

    Not working 😕 using security token . It needs a billing plan . Till now no solution if you want to hide the password.

  • @mahaprabuhere6763
    @mahaprabuhere6763 ปีที่แล้ว

    hi i have a question will this workout if i create html file in local storage without server..i was trying but it thrown error can you say yes or no

  • @akshaymogaveera4088
    @akshaymogaveera4088 ปีที่แล้ว

    How to use radio options in this code?

  • @luggageway1645
    @luggageway1645 2 ปีที่แล้ว

    i did everyting you said and it tell me (The specified string is not in the form required for an e-mail address.)
    what should i do?

  • @sundarapandim1104
    @sundarapandim1104 ปีที่แล้ว

    Plz post source codeof your video when u upload...

  • @sayakrana3984
    @sayakrana3984 2 ปีที่แล้ว +1

    I do everything but I can't receive any email

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      Check my new modified video.
      I hope you can understand
      tutorial link
      th-cam.com/video/E4SL1ymKz00/w-d-xo.html&ab_channel=CodeWithSanjoy

  • @sundarapandim1104
    @sundarapandim1104 ปีที่แล้ว +1

    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...

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      this type of video i already create please watch
      video link th-cam.com/video/E6UM-SjYni0/w-d-xo.html

  • @SreejithJayakumarOnline
    @SreejithJayakumarOnline ปีที่แล้ว

    gmail has stopped this third party option, so any other alternatives?

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      Check my new modified video.
      I hope you can understand
      tutorial link
      th-cam.com/video/E4SL1ymKz00/w-d-xo.html&ab_channel=CodeWithSanjoy

  • @CraigHalonen
    @CraigHalonen ปีที่แล้ว

    at 14:16 how do I get the pop-up to ok the email being sent??

    • @helcurt_.
      @helcurt_. 11 หลายเดือนก่อน

      js
      alert("Email being sent");

  • @sannidhyanautiyal619
    @sannidhyanautiyal619 ปีที่แล้ว

    hello sir i am getting authentication error while sending reply to form

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      please watch my modified video
      link : th-cam.com/video/E4SL1ymKz00/w-d-xo.html

  • @35amanjadhao12
    @35amanjadhao12 2 ปีที่แล้ว +1

    give the source code man
    plese

  • @sundarapandim1104
    @sundarapandim1104 ปีที่แล้ว

    Sir.. Plz post source code of this video....

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      Check my new modified video.
      I hope you can understand
      tutorial link
      th-cam.com/video/E4SL1ymKz00/w-d-xo.html&ab_channel=CodeWithSanjoy

  • @TIGERCODEYT
    @TIGERCODEYT 2 ปีที่แล้ว

    source code please?

  • @gamerxroshan2737
    @gamerxroshan2737 2 ปีที่แล้ว

    i try this code but i cant get any email plzz help meee

    • @codewithsanjoy
      @codewithsanjoy  2 ปีที่แล้ว

      please watch the video carefully and read the description box. I hope you understand

    • @gamerxroshan2737
      @gamerxroshan2737 2 ปีที่แล้ว

      Ok

    • @paulinus328
      @paulinus328 2 ปีที่แล้ว

      It is not free anymore

  • @anlatlgan3065
    @anlatlgan3065 ปีที่แล้ว

    Are you writing your password to a client html code or it is just my eyes are bleeding ? Never do that guys.

  • @jamisaiteja6149
    @jamisaiteja6149 2 ปีที่แล้ว

    Not working

  • @jonathanramirezlopez543
    @jonathanramirezlopez543 ปีที่แล้ว

    is it free

  • @navalskitchen871
    @navalskitchen871 2 ปีที่แล้ว

    Hlo

    • @navalskitchen871
      @navalskitchen871 2 ปีที่แล้ว

      I have error the smtp server requires a secure connection or the client was no authenticated. The server response was : authenticated required

    • @navalskitchen871
      @navalskitchen871 2 ปีที่แล้ว

      How to solve this issue . Ugent form me

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      Check my new modified video.
      I hope you can understand
      tutorial link
      th-cam.com/video/E4SL1ymKz00/w-d-xo.html&ab_channel=CodeWithSanjoy

  • @shakhzodmadmarov7946
    @shakhzodmadmarov7946 ปีที่แล้ว +1

    It is not working, wasting time 🤦‍♂️

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      Check my new modified video.
      I hope you can understand
      tutorial link
      th-cam.com/video/E4SL1ymKz00/w-d-xo.html&ab_channel=CodeWithSanjoy

  • @Hakdog-y2n
    @Hakdog-y2n ปีที่แล้ว

    Me getting error "unexpected string"

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      please watch my tutorial video carefully

  • @scaramouche6928
    @scaramouche6928 2 ปีที่แล้ว

    it really works aa aaaa tytytyty

  • @xilado4254
    @xilado4254 2 ปีที่แล้ว +1

    For those who asked themselves why it was working 6 Months ago but not now...Due to hacking attacks SMTPJS is no longer trusted by every mail provider besides one no name commercial provider, furthermore has Google changed their privacy rules...to third party programms its no longer permitted to access the email via smtp, but it works perfectly fine with other ones like outlook and gmx

  • @vaivaicomputer5836
    @vaivaicomputer5836 2 ปีที่แล้ว

    I do everything but I can't receive any email

  • @kamleshgehlot2824
    @kamleshgehlot2824 2 ปีที่แล้ว

    I do everything but I can't receive any email

    • @codewithsanjoy
      @codewithsanjoy  ปีที่แล้ว

      Check my new modified video.
      I hope you can understand
      tutorial link
      th-cam.com/video/E4SL1ymKz00/w-d-xo.html&ab_channel=CodeWithSanjoy