0

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

Conrad Lotz
  • 8,200
  • 3
  • 23
  • 27
Vlad Manolache
  • 414
  • 2
  • 4
  • 25
  • 1
    Use this link for sending email without using intent ..... [ Link](http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a/2033124#2033124) –  Aug 10 '13 at 13:57
  • This is the linked that I used, and it worked great until recently. – Vlad Manolache Aug 10 '13 at 14:02

1 Answers1

0

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.

Vlad Manolache
  • 414
  • 2
  • 4
  • 25