Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 11 not sending Mail #6

Open
LJOSS opened this issue Jan 26, 2022 · 3 comments
Open

Android 11 not sending Mail #6

LJOSS opened this issue Jan 26, 2022 · 3 comments

Comments

@LJOSS
Copy link

LJOSS commented Jan 26, 2022

On Android 11 not sending mail with exception check code and error below

val mail = Mail().apply {
            mailServerHost = SERVER_MAIL_HOST
            mailServerPort = SERVER_MAIL_PORT
            fromAddress = FROM_ADDRESS
            password = FROM_ADDRESS_PASSWORD
            toAddress = arrayListOf(email)
            subject = "Subject"
            content = "Message"
            openSSL = true
        }
        MailSender.getInstance().sendMail(mail, object : MailSender.OnMailSendListener {
            override fun onError(e: Throwable) {

            }

            override fun onSuccess() {

            }
        })

java.lang.VerifyError: Rejecting class com.sun.mail.handlers.text_html that attempts to sub-type erroneous class com.sun.mail.handlers.text_plain (declaration of 'com.sun.mail.handlers.text_html' appears in /data/app/~~YHjCQK5GsYs7gkjB5R6Psw==/com.example.myapp-cKn0YFhpNVo1Qj20ZUqtOg==/base.apk!classes25.dex)

@v1rus-dev
Copy link

I have the same error!

@Spacus1k
Copy link

↑ same problem

@satyd
Copy link

satyd commented Jan 27, 2022

finally smth, faced same issue too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants