You should get error with password, if something is wrong.
Also read:
App Inventor Tutorials and Examples: Send Mail | Pura Vida Apps
App Inventor snippets, tutorials, links and App Inventor extensions directory.
You should get error with password, if something is wrong.
Also read:
I've done it. To be sure, do I just need to enter the name of the application and paste the code it gives me?
do I just need to enter the name of the application and paste the code it gives me?
Yes, that's the app-specific password.
A quick question, should I put the name of my application or the Mit A2 Companion?
You can put any name
But later to still understand, for what exactly you once created that app specific password, it might be a good idea to use your app name
Taifun
Thank you!
Hello, I read above about the app password for gmail, and I have a couple of questions.
Do I use the app specific name from gmail in the username and the app password from gmail in the password?
Thank you. @vknow360
Do I use the app specific name from gmail in the username and the app password from gmail in the password?
the username is your user name, for example mlapps@gmail.com
the password is the 16 digit app passcode
Taifun
Ah, thank you so much. Worked perfectly!
Hi
my app with the SmtpClient extension works fine on newer Android (9 and 12) but fails on 4.4.2.
Is there an email solution for the old Android 4.4.2 with the SSL protokoll?
Greetings
Thomas
SmtpClient extension
Unfortunately I do not know, about which extension you are ttalking about, but you are invited to test my paid mail extension App Inventor Extensions: Mail | Pura Vida Apps here
https://play.google.com/apps/testing/appinventor.ai_taifunbaer.smtp
For Gmail accounts you need an application specific password, which you can get following these steps Sign in with app passwords - Google Account Help
Taifun
Well, i use the Smtp extention from "vknow360" and on Android 4.4.2 it crashes with the following screen.
Seems thats java.mail doesn't support the old android version. (on android >=9 everything is ok.)

i use the Smtp extention from "vknow360
I now moved your contribution into the correct thread
I didn't try your solution
This is your decision
You also could try another of the many email solutions
App Inventor snippets, tutorials, links and App Inventor extensions directory.
Taifun
I am using the SMTP CLIENT extension to send notification emails using my SMTP server, and it works perfectly on the companion app, but when I export it to the apk, it doesn't work; the screen closes when I click “send.”
It works fine on the companion app, but not on the apk.
You can use logcat and try to find out what happens in apk
ADB is a command-line utility that that can be used to control your device over USB from a computer. It will allow you to install / uninstall and or view logs on your device. This could be very handy when there are issues with a specific app and you like to view the logs for information that may lead to identify the cause of error. In this post, we’ll discuss how to install and use ADB. Installation: ADB comes with Android SDK. However, you can download ONLY the ADB files from HERE . EDIT: …
I’m getting a crash when calling my email-sharing function. The app throws:
java.util.ServiceConfigurationError: javax.mail.Provider: Provider com.sun.mail.imap.IMAPProvider not found
Caused by: ClassNotFoundException: com.sun.mail.imap.IMAPProvider
This happens when javax.mail.Session.getInstance() is created (Jakarta Mail 1.6.7 is logged). It looks like the extension package is missing the IMAP provider classes/resources (e.g., com.sun.mail.imap.IMAPProvider and/or the META-INF/services/javax.mail.Provider entries), so JavaMail fails while loading providers and crashes the app.
I’m getting a crash when calling my email-sharing function
Which Android device and Android version are you using for your tests?
Does it work on another device?
Taifun
Which Android device and Android version are you using for your tests?
Does it work on another device?Taifun
I tested it on different devices:
Galaxy A56 Android 15
Infinix Note 50 Android 15
Galaxy S24 Android 16
LDPlayer Emulator
Testing using ADB-Tool too
Which of the 2 versions are you using?
ChangeLog Version 1.5 Updated libs Migrated to Rush Reduced aix size by 50% com.sunny.SmtpClient.aix (444.4 KB) No deps version to be used with ImapClient extension: com.sunny.SmtpClient-no_deps.aix (11.1 KB)
Try the version with dependencies
Taifun