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
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...
This channel is exactly what i was waiting for thanks man👍👍👍
Welcome
Eyvallah bilader.. ;)
You're welcome
Thanks for the tutorial. It helped a lot !!
You're welcome. Keep learning.
Thank you brother, you are very great.
Welcome bro
Thank u very much.
Welcome
Good tutorial, Thank you.
Welcome
Great tutorial. Thank you so much!
Thank you Brother
Your welcome.
Nice! Thank you!
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
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
hi bro make a video on how to make android apps to support different screen sizes
Great tutorial helped alot, can you tell me if the jar libraries get removed by minify when compiling for production ?
it's my pleasure. I haven't tried yet.
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.
Thanks for appreciation. For your issue read the video description.
@@AndroidCoding as I already Wrote in the comment, I already read your description, please read my comment to the fullest mate
Ok. Send me your code screen shot on instagram. I will try to solve.
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
Good Job Thank u very much >>>>>>> Do you have the source code ?
Your welcome.
Join this channel membership to get access to source code perks:
ua-cam.com/channels/UIF5MImktJLDWDKe5oTdJQ.htmljoin
Javax.mail.AuthenticationFailedException at doInBackground....please help
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?
Sir my doInBackground method is not executing can you please help me
Aise hi aur tutorial upload karo Kotlin ka
hello very good the video works perfect, how can I send html format in the message?
Thanks
Toast. something when wrong ?
Read description.
can you use JavaMail API to send picture ass attachment to the email !
!
Ok. I will try it later.
as*
I want to pass string value as receivers address.i am getting error at Internet Adress.parse need help...
write "message.setRecipients()" not "message.setRecipient()"
Very good tutorial!
But, I have this exception: W/System.err: javax.mail.MessagingException: Could not convert socket to TLS;
Anyone can help me?
Read description and follow the steps.
@@AndroidCoding I do, but it still didn't work.
@@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.
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
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-
Work properly. Mail Send successful but not get mail.
After publishing app on Play Store it really works or not.
i try using your app but also it's not working "something went wrong" why... please ??
Read video description.
What's the use of that jar files and how to get it
Without Jar file error will come. It's required.
@@AndroidCoding but jar files are not downloading
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
Can you please make a video on receive mail using Java mail API in Android studio.
It is not working...always saying "something went wrong?" ...your APK is also not working...please help
Same problem occurs with me
Anyone have solution for this
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-
I have the same problem.... I did follow those steps on the description...any solution?
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
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"
hi
love your channel
nothing happened when i pressed the button
First check my apk which is given in description. After that check your code. Step by step follow the video.
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?
Don't work....can you help me?
Read description and follow the steps.
Asynctask was deprecated :( What could be an alternative for this code?
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....!!!
Where is the tutorial for get email ?
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?
Hi! I'm trying to do the same thing: sending an email to the user logged in. Did you succeed?
@@denisamarginean4801 yes.
Can you help me please with a code? Or can you tell me what I need to change?
@@denisamarginean4801 Sure, I would love to. Contact me at aman.singh.17cse@bml.edu.in
@@amankumarsingh1801 I send you an email
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.
What about security issues? How safe is it to hardcode email and password? Can you advice something?
Could you say "How can we add signature to our e-mail while sending?".
Thank you.
the code works fine. but every so often I get security alerts from gmail. Does the same thing happen to someone else?
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.
Does this work if I want to send a message from my private email account ? or this code only with gmail?
how to attach files?
What about secret authentification?
if i click the button nothing happens
how to send no reply email to our registered users in android studio
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
Welcome. I don't know why mail is being spam.
@@AndroidCoding bad luck for me ,ok thank you for your reply
is there a way to have an email sent to an specific emaill address without requesting the email / password of the other person?
Of course, just hardcore the email in the java code
is the code available on some repo?
How can we get the jar files
Link is given in description.
Asynctask was deprecated :( What could be an alternative for this code?
have you found that?
target sdk version set to 29 in build.gradle