How to Implement Java Mail Api in Android Studio | JavaMailApi | Android Coding

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • Java Mail Api Tutorial : In This Video, You Will Learn How to Integrate Java Mail Api in Android Studio.
    Follow two step to send mail :
    Step 1 : Turn On less secure
    myaccount.goog...
    Step 2 : Allow Display Unlock Captcha
    accounts.googl...
    How to follow steps :
    drive.google.c...
    Manifest :
    uses-permission android:name="android.permission.INTERNET"/
    Build.Gradle :
    implementation files('libs/mail.jar')
    implementation files('libs/activation.jar')
    implementation files('libs/additionnal.jar')
    All File :
    1) activity_main.xml 2) MainActivity.java
    3) bg_round.xml
    Table Of Content :
    0:23 - Project Creation
    0:41 - XML Code
    5:04 - Java Code
    18:08 - Output
    Presented By : Android Coding
    Background Music By : NoCopyrightSounds
    Download Apk Link :
    drive.google.c...
    Jar Files Link :
    drive.google.c...
    All My App Links :
    1) QR Scanner App : bit.ly/ScannerA...
    2) Colors Code App : bit.ly/ColorsCode
    3) Age Calculator App : bit.ly/AndroidA...
    Enjoy & Stay Connected With Us!
    ► Subscribe To Android Coding : bit.ly/UA-cam-...
    ► Like Us On Facebook : bit.ly/Facebook...
    ► Follow Us On Instagram : bit.ly/Instagra...
    ► Follow Us On Twitter : bit.ly/Twitter-...
    #JavaMailApi #AndroidTutorial #12H1r

КОМЕНТАРІ • 101

  • @jayantkumar8110
    @jayantkumar8110 4 роки тому +3

    Initially i though your program was incomplete just like other UA-camrs..
    Bt at last i was proved wrong..
    It does work... Good job, Keep it up bro...

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

    This channel is exactly what i was waiting for thanks man👍👍👍

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

    Eyvallah bilader.. ;)

  • @mananvirmani1243
    @mananvirmani1243 3 роки тому +2

    Thanks for the tutorial. It helped a lot !!

  • @kaikaimakerspace
    @kaikaimakerspace 4 роки тому +1

    Thank you brother, you are very great.

  • @arslan1427
    @arslan1427 4 роки тому +1

    Thank u very much.

  • @tojibulislam6473
    @tojibulislam6473 3 роки тому +1

    Good tutorial, Thank you.

  • @ahmednaeem3523
    @ahmednaeem3523 3 роки тому

    Great tutorial. Thank you so much!

  • @abhivanbhakti
    @abhivanbhakti 4 роки тому +1

    Thank you Brother

  • @yiningzheng2332
    @yiningzheng2332 3 роки тому

    Nice! Thank you!

  • @Shadow67947
    @Shadow67947 3 роки тому +2

    I'm having problems with "Session.getInstance()", i tried to look for the method in developers but couldn't find it. Can someone please help me

  • @THEGAMER-rh4tx
    @THEGAMER-rh4tx 3 роки тому +1

    Hello , first Thanks for the awsome tutorial which helped me alot, my problem is i follwed every step from the tutorial and description, even the vid in the description. My proplem is when I leave the 2 strings empty only your email Id and Your Pass for email of the sender it give me error about whitespace or something, when I write the sender email and pass it give me "EGLNativeWindowType 0x77e5332010 disconnect failed also javax.mail.AuthenticationFailedException" pls if you can help me so Thank You

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

    hi bro make a video on how to make android apps to support different screen sizes

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

    Great tutorial helped alot, can you tell me if the jar libraries get removed by minify when compiling for production ?

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

      it's my pleasure. I haven't tried yet.

  • @lidory98
    @lidory98 3 роки тому +1

    Hello sir, first of all, love your channel, most of the time it's pure perfection.
    this tutorial is also good but I always get the "Something went wrong ?" Toast. I read all of the description, and I downloaded your apk to my phone, same problem happens with your apk as well.

    • @AndroidCoding
      @AndroidCoding  3 роки тому

      Thanks for appreciation. For your issue read the video description.

    • @lidory98
      @lidory98 3 роки тому +1

      @@AndroidCoding as I already Wrote in the comment, I already read your description, please read my comment to the fullest mate

    • @AndroidCoding
      @AndroidCoding  3 роки тому

      Ok. Send me your code screen shot on instagram. I will try to solve.

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

    How about if you want to hide the recipient address from user. For example if you want users to submit some content and don't want to reveal the email but implement it in the java code

  • @User-mr3ti
    @User-mr3ti Рік тому +1

    Good Job Thank u very much >>>>>>> Do you have the source code ?

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

      Your welcome.
      Join this channel membership to get access to source code perks:
      ua-cam.com/channels/UIF5MImktJLDWDKe5oTdJQ.htmljoin

  • @rohitparakh4
    @rohitparakh4 4 роки тому +1

    Javax.mail.AuthenticationFailedException at doInBackground....please help

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

    1:33 I cannot find the "libs" folder and the jar files after pasting in the dropdown manu in the latest Android Studio Chipmunk 2021.2.1 version. How to fix this?

  • @Rizzwan12__
    @Rizzwan12__ 4 роки тому +1

    Sir my doInBackground method is not executing can you please help me

  • @abhivanbhakti
    @abhivanbhakti 4 роки тому +1

    Aise hi aur tutorial upload karo Kotlin ka

  • @Kreandoapp
    @Kreandoapp 4 роки тому +1

    hello very good the video works perfect, how can I send html format in the message?

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

    Toast. something when wrong ?

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

    can you use JavaMail API to send picture ass attachment to the email !
    !

  • @nirukusam
    @nirukusam 4 роки тому +1

    I want to pass string value as receivers address.i am getting error at Internet Adress.parse need help...

    • @ahmedtiger3809
      @ahmedtiger3809 4 роки тому +1

      write "message.setRecipients()" not "message.setRecipient()"

  • @ruibraz4629
    @ruibraz4629 3 роки тому +2

    Very good tutorial!
    But, I have this exception: W/System.err: javax.mail.MessagingException: Could not convert socket to TLS;
    Anyone can help me?

    • @AndroidCoding
      @AndroidCoding  3 роки тому

      Read description and follow the steps.

    • @ruibraz4629
      @ruibraz4629 3 роки тому

      @@AndroidCoding I do, but it still didn't work.

    • @ruibraz4629
      @ruibraz4629 3 роки тому

      @@AndroidCoding In my email, I received an email to confirm the activity. That is, it seems that the login is done without any problem, but when you try to send the message, something is going wrong.

  • @gabrielbarcelon8665
    @gabrielbarcelon8665 4 роки тому +1

    I've been meaning to ask but, how do you make it into an apk? I pressed the Build Apk and when it was done I located it and I went to the debug folder and I saw app-debug.apk and output.json. I transferred the apk file to my phone, when it finished installing I couldn't open it and all I saw was white. Am I doing something wrong here? Am I missing something? Or am I just stupid? Nice vid btw, really helpful :)
    EDIT: Found the problem, I'm just stupid. Nice vid, really helps

    • @AndroidCoding
      @AndroidCoding  4 роки тому

      Follow two step to send mail :
      Step 1 : Turn On less secure
      myaccount.google.com/lesssecureapps
      Step 2 : Allow Display Unlock Captcha
      accounts.google.com/DisplayUnlockCaptcha
      How to follow steps :
      drive.google.com/open?id=1KoQ1u797txwvVb8-_ORsnNyDQEcnCwg-

  • @orito-hireminitrucksonline183
    @orito-hireminitrucksonline183 3 роки тому

    Work properly. Mail Send successful but not get mail.

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

    After publishing app on Play Store it really works or not.

  • @nisbiabdelhak9118
    @nisbiabdelhak9118 4 роки тому +1

    i try using your app but also it's not working "something went wrong" why... please ??

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

    What's the use of that jar files and how to get it

    • @AndroidCoding
      @AndroidCoding  4 роки тому

      Without Jar file error will come. It's required.

    • @Rizzwan12__
      @Rizzwan12__ 4 роки тому

      @@AndroidCoding but jar files are not downloading

  • @whoever2910
    @whoever2910 3 роки тому

    This only works for me if I'm connected to a paid mobile internet or whatever you call those but it doesn't work when I'm connected to a private home network. Do you know why this may be the case? Please don't ignore my comment. I need this to fully finish my app. Thanks

  • @chanduu516
    @chanduu516 3 роки тому

    Can you please make a video on receive mail using Java mail API in Android studio.

  • @rohitparakh4
    @rohitparakh4 4 роки тому +1

    It is not working...always saying "something went wrong?" ...your APK is also not working...please help

    • @Rizzwan12__
      @Rizzwan12__ 4 роки тому

      Same problem occurs with me

    • @Rizzwan12__
      @Rizzwan12__ 4 роки тому

      Anyone have solution for this

    • @AndroidCoding
      @AndroidCoding  4 роки тому

      Follow two step to send mail :
      Step 1 : Turn On less secure
      myaccount.google.com/lesssecureapps
      Step 2 : Allow Display Unlock Captcha
      accounts.google.com/DisplayUnlockCaptcha
      How to follow steps :
      drive.google.com/open?id=1KoQ1u797txwvVb8-_ORsnNyDQEcnCwg-

    • @shreeyab949
      @shreeyab949 4 роки тому

      I have the same problem.... I did follow those steps on the description...any solution?

  • @jasonparkin2939
    @jasonparkin2939 4 роки тому

    I've just noticed my emulator run in Android Studio blocks the process of sending an email. Try plugging in an android phone and run the app directly from your phone. Hope this helps someone else

  • @jonahiemstra9146
    @jonahiemstra9146 3 роки тому

    I have followed your instrunctions and everything looks good (checked every code 3 times 😅) but yet i cant seem to send any emails. I have entered the Internet permission in the manifest. Downloaded and exported the jar files in libs, followed every code, read the discription and gave permission in Gmail. But as soon as i press the send button i get the message something went wrong. Is there anyway i can sent you the code or anything? I checked it with catlog and i get 1 fault code: E/libc: Access denied finding property "ro.serialno"

  • @Mustafamustafa-mi6ux
    @Mustafamustafa-mi6ux 4 роки тому +1

    hi
    love your channel
    nothing happened when i pressed the button

    • @AndroidCoding
      @AndroidCoding  4 роки тому

      First check my apk which is given in description. After that check your code. Step by step follow the video.

  • @ogunodabas9332
    @ogunodabas9332 3 роки тому

    If there is an open session in the gmail application on the phone, is there a gmail api that allows you to log in without getting mail and password?

  • @alfredolm-1859
    @alfredolm-1859 4 роки тому +1

    Don't work....can you help me?

    • @AndroidCoding
      @AndroidCoding  4 роки тому

      Read description and follow the steps.

  • @touqeerjavaid7333
    @touqeerjavaid7333 3 роки тому

    Asynctask was deprecated :( What could be an alternative for this code?

  • @ashukeshri1102
    @ashukeshri1102 4 роки тому

    bro, i fallowed your each step but still it is showing something went wrong , i also give all the permission which u put in your description box to my gmail id , please help....!!!

  • @BIlalKhan-te6ii
    @BIlalKhan-te6ii 3 роки тому

    Where is the tutorial for get email ?

  • @amankumarsingh1801
    @amankumarsingh1801 4 роки тому

    Hey! Love your videos.
    I'm using this to send email to my user already logged in. Does use of my sending mail credentials will log out that user from the app?

    • @denisamarginean4801
      @denisamarginean4801 4 роки тому

      Hi! I'm trying to do the same thing: sending an email to the user logged in. Did you succeed?

    • @amankumarsingh1801
      @amankumarsingh1801 4 роки тому

      @@denisamarginean4801 yes.

    • @denisamarginean4801
      @denisamarginean4801 4 роки тому

      Can you help me please with a code? Or can you tell me what I need to change?

    • @amankumarsingh1801
      @amankumarsingh1801 4 роки тому

      @@denisamarginean4801 Sure, I would love to. Contact me at aman.singh.17cse@bml.edu.in

    • @denisamarginean4801
      @denisamarginean4801 4 роки тому

      @@amankumarsingh1801 I send you an email

  • @AmirHamza-oh1tp
    @AmirHamza-oh1tp 3 роки тому

    Someone just used your password to try to sign in to your account from a non-Google app. Google blocked them, but you should check what happened. Review your account activity to make sure no one else has access.

  • @igorboris4334
    @igorboris4334 3 роки тому

    What about security issues? How safe is it to hardcode email and password? Can you advice something?

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

    Could you say "How can we add signature to our e-mail while sending?".
    Thank you.

  • @Kreandoapp
    @Kreandoapp 4 роки тому +1

    the code works fine. but every so often I get security alerts from gmail. Does the same thing happen to someone else?

    • @AndroidCoding
      @AndroidCoding  4 роки тому +1

      Because your mail insecure mode is enabled for sending mail. Create a new id for mail. Don't use of personal gmail id for it.

  • @sandilechitsa3694
    @sandilechitsa3694 4 роки тому

    Does this work if I want to send a message from my private email account ? or this code only with gmail?

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

    how to attach files?

  • @newAMDman
    @newAMDman 4 роки тому

    What about secret authentification?

  • @ahmedtiger3809
    @ahmedtiger3809 4 роки тому

    if i click the button nothing happens

  • @vishalkumavat6755
    @vishalkumavat6755 4 роки тому

    how to send no reply email to our registered users in android studio

  • @pabbineedirahul3637
    @pabbineedirahul3637 4 роки тому

    thaks for the video
    but the problem is while i am sending mail to a new users gmail from my app, that mail is going to spam mails of the user
    after i send mails manually and trying this , it is working good
    can you please tell me why

    • @AndroidCoding
      @AndroidCoding  4 роки тому

      Welcome. I don't know why mail is being spam.

    • @pabbineedirahul3637
      @pabbineedirahul3637 4 роки тому

      @@AndroidCoding bad luck for me ,ok thank you for your reply

  • @Axelmancool
    @Axelmancool 3 роки тому

    is there a way to have an email sent to an specific emaill address without requesting the email / password of the other person?

    • @Tro79xD
      @Tro79xD 3 роки тому

      Of course, just hardcore the email in the java code

  • @filipnone7272
    @filipnone7272 4 роки тому

    is the code available on some repo?

  • @ranianourelhouda6146
    @ranianourelhouda6146 4 роки тому +1

    How can we get the jar files

  • @marioarmandorazovalenzuela7567
    @marioarmandorazovalenzuela7567 3 роки тому

    Asynctask was deprecated :( What could be an alternative for this code?