Today, I’m going to show you how to send email from android app using java mail API. Watch to learn how it work and don’t forget to turn on your notifications!
First you need to create app password for send email from app.Follow the instructions.
Create & use App Passwords
Note: If you use 2-Step-Verification and are seeing a "password incorrect" error when trying to access your Google Account, an App Password may solve the problem.
Go to your Google Account.
On the left navigation panel, choose Security.
On the "Signing in to Google" panel, choose App Passwords. If you don’t see this option:
2-Step Verification is not set up for your account.
2-Step Verification is set up for security keys only.
Your account is through work, school, or other organization.
You’ve turned on Advanced Protection for your account.
At the bottom, choose Select app and choose the app you’re using.
Choose Select device and choose the device you’re using.
Choose Generate.
Follow the instructions to enter the App Password. The App Password is the 16-character code in the yellow bar on your device.
Choose Done.
Now Use this password for APP
Most of the time, you’ll only have to enter an App Password once per app or device, so don’t worry about memorizing it.
[LINK TO DOWNLOAD LIBS FILE]: https://bit.ly/2KIyiGs
[LINK TO JAVAMAIL API CLASS]: https://bit.ly/2KIU39i
[LINK TO SOURCE CODE]: https://bit.ly/2L0QJ8v
*FOLLOW ME ON SOCIAL MEDIA! *
MY INSTAGRAM ► https://bit.ly/2YYABy5
MY GITHUB► https://bit.ly/2ZnhJZb
MY LINKEDIN► https://bit.ly/2GmxQLK
MY FACEBOOK► https://bit.ly/33ChEzQ
Have any other questions about this video? Let me know in the comments!
#AndroidStudio
#JavaMailAPI