• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android javamail Api problem

 
Remco Ijntema
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to send an email from an Android device wich works fine, but only when I send to mail to the same account I am logged in to.
Here's my code:


And when I try to send the email I get this error in LogCat:


Can anyone tell me what I did wrong here?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch.

Is the getPasswordAuthentication method ever called?

By the way, are you using http://code.google.com/p/javamail-android/ as the JavaMail implementation? I thought that the standard JavaMail implementation does not work on Android.
 
Remco Ijntema
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the correct mailApi indeed, I found that out early on. But you might be right about the getPasswordAuthentication() Where should I call this?
Thanks
 
Remco Ijntema
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added the getPasswordAuthentication in a correct way. But it didn't work, same result
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added the getPasswordAuthentication in a correct way.

What did you change? Your code would not call this - it's a callback for JavaMail.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic