Skip to content Skip to sidebar Skip to footer

Sending Email In Google Glass

I'm trying to send a email to a (at this moment) hardcoded email adress when a streaming link is generated. I tried using the piece of code that was accepted as awnser HERE However

Solution 1:

I found a solution for my problem. I was using the jar files that where linked in the awnser. However it seems that mail.jar file is outdated or just not working properly.

I downloaded the following mail.jar

JavaMail API 1.4.7

Then I replaced my current mail.jar file with the one found in the zip file. I ran the code again and got a message saying

Please log in via your web browser and then try again.

I then went to my google security settings and "Access for less secure apps" was on.

I ran my code again and voila I got a mail in my inbox.

I hope other people with the similair problem find use in this.

Post a Comment for "Sending Email In Google Glass"