简体   繁体   中英

Send emails without user interaction

What is the best way to send emails without using intents?

I was using android GMailSender, and it worked great just until recentily. It still works for android 4.0 and bellow, but gives a SSL error on version 4.2.

The error:

Got javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sat Jan 01 03:20:30 EET 2000, validation time: Thu Jun 21 03:00:00 EEST 2012 while executing fetchSessionlessAppInfo, retrying on a safe network stack

I fount the issue.

Turns out i took out the battery out of my phone and the certificate is somehow linked to the current time.

'at Jan 01 03:20:30 EET 2000' is not current time .. should of tipped me off.

Thanks anyways for your answers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM