Java Swing Application for Sending E-Mail - StudyViral

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Java Swing Application for Sending E-Mail - StudyViral
    In this video I am going to show you
    To Send Email From Java Swing Application
    In This video i am using GMAIL
    Step - 1
    You may Face Problem in Sending email
    To avoid any problem please create a NEW GMAIL Account
    without linking to Mobile Number
    Step - 2
    Download Required JAR files
    mail.jar
    Email :: info@studyviral.in
    Or
    Email :: studyviral.in@gmail.com
    Website:: www.StudyViraL.in
    Facebook Page :: / studyviral.in
    For Suggestions You Can Email :: info@studyviral.in
    studyviral.blogspot.in/
    #studyviral #JavaSwingsSendEmail #rohitbasra

Komentáře • 44

  • @daudabashir9936
    @daudabashir9936 Před 3 lety

    Thanks the was really helped please is a way to select the multiple recipients addresses from database and send to them at once?

  • @easy_coding0
    @easy_coding0 Před 3 lety

    working properly

  • @abineshb5431
    @abineshb5431 Před 4 lety +1

    While I am compiling your program it says "Must issue a STARTTLS command first" but I already included all your lines in my program

  • @shubhamarora547
    @shubhamarora547 Před 5 lety

    sir aap ki ye video bohut helpful hai sir lekin aapne iss video mein jo code likha hai aap pls usko hindi mein explain karde toh achche se samaj mein aa jayega pls sir aap iss video ko dobara se upload kariye with ur voice

  • @sitiaisyahazman6565
    @sitiaisyahazman6565 Před 5 lety +1

    I get an error,
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 587;
    nested exception is:
    java.net.ConnectException: Connection refused: connect

  • @do1747
    @do1747 Před 3 lety

    com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
    Can anyone know the reason of that error?

  • @isurupathum7299
    @isurupathum7299 Před 5 lety

    hi ..got some error with this ..
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    class javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. t21sm1049016pgg.24 - gsmtp

  • @lazarmalbasic5092
    @lazarmalbasic5092 Před 8 měsíci

    It doesn't work for me, can you help?

  • @rakeshkhanna3008
    @rakeshkhanna3008 Před 4 lety

    After click the send button..it doesnt work actually..send button cannt execute on this program..& the output shows line errors..bt in the program no error cannt be seen

    • @StudyViral
      @StudyViral  Před 4 lety

      hi
      you have to use your email n password instead of mine...
      second make sure gmail account is not using security features like account verification and all you have to disable it before using.
      Regards

  • @thichtranminh6236
    @thichtranminh6236 Před 4 lety

    show me your library, plz. thanks a lot

    • @thichtranminh6236
      @thichtranminh6236 Před 4 lety

      ExceptionException in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/activation/DataSource
      at email.EmailSendingApplication.jButton1ActionPerformed(EmailSendingApplication.java:190)
      at email.EmailSendingApplication$2.actionPerformed(EmailSendingApplication.java:103)
      at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
      at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
      at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
      at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
      at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
      at java.desktop/java.awt.Component.processMouseEvent(Component.java:6636)
      at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
      at java.desktop/java.awt.Component.processEvent(Component.java:6401)
      at java.desktop/java.awt.Container.processEvent(Container.java:2263)
      at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012)
      at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
      at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
      at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
      at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
      at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
      at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
      ... 37 more in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/activation/DataSource
      at email.EmailSendingApplication.jButton1ActionPerformed(EmailSendingApplication.java:190)
      at email.EmailSendingApplication$2.actionPerformed(EmailSendingApplication.java:103)
      at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
      at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
      at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
      at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
      at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
      at java.desktop/java.awt.Component.processMouseEvent(Component.java:6636)
      at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
      at java.desktop/java.awt.Component.processEvent(Component.java:6401)
      at java.desktop/java.awt.Container.processEvent(Container.java:2263)
      at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012)
      at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
      at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
      at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
      at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
      at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
      at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
      ... 37 more
      CAN YOU HELP ME ANSWER THIS?

    • @urfavhuman69
      @urfavhuman69 Před 4 lety

      @@thichtranminh6236 Did you solve this?

  • @theodyssey8042
    @theodyssey8042 Před 11 měsíci

    where do i download the mail.JAR?

  • @meghanarajendra4296
    @meghanarajendra4296 Před 4 lety

    Sir source code is not visible properly

  • @techmart9525
    @techmart9525 Před 3 lety +3

    Its work bro.but there may be some changes.how ever my code was successfully run. Bcz of ur vedio + stack overflow😊. If any one want it reply😊

    • @era_46
      @era_46 Před 3 lety

      Can you send me please 😀

    • @techmart9525
      @techmart9525 Před 3 lety +1

      @@era_46 yep.send me ur email

    • @era_46
      @era_46 Před 3 lety

      @@techmart9525 I corrected that brother. thank you so much for your kindness.

    • @techmart9525
      @techmart9525 Před 3 lety +1

      @@era_46 adow sliit neda😂👍

    • @era_46
      @era_46 Před 3 lety +1

      @@techmart9525 apppa danne photo eka hariyata dakke 😂 oya me kurunegala hitiya ekkena neda 😂

  • @TheDr.01
    @TheDr.01 Před 4 lety +3

    Help me please, I'm getting an error: Java.mail.SendFailedException: Sending failed;
    nested exception is:
    class java.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS common first. d6sm15396454pfn. 32 - gsmtp

  • @NarasimaCodes
    @NarasimaCodes Před 5 lety

    can i use this with my business gmail account i.e.,example@business_name.com

  • @anikdebnath6495
    @anikdebnath6495 Před 5 lety

    showing this problem
    javax.mail.AuthenticationFailedException: failed to connect, no password specified?
    can you please give the solution

    • @StudyViral
      @StudyViral  Před 5 lety

      Hello Mr Debnath
      Buddy you have to use your email n password instead of mine...
      Good luck

    • @ajithraj1206
      @ajithraj1206 Před 4 lety

      @@StudyViral lol