aspose file tools
The moose likes Other JSE/JEE APIs and the fly likes Java Mail Proplem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Java Mail Proplem" Watch "Java Mail Proplem" New topic
Author

Java Mail Proplem

Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

Hi All,

I'm new to Java Mail API. I'm trying to read INBOX using following code. But it throws javax.mail.NoSuchProviderException: invalid provider at session.getStore("smtp");




I get following Stack trace



Please suggest me something on this. Am i missing something???

Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

SMTP is for sending only, and does not have a store. To get access to the inbox you will need to use IMAP, POP3 or another protocol for reading mail, not sending it.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Java Mail Proplem
 
Similar Threads
Javamail beginners doubt.
Java mail with authentication!
Email send failure
Problem with Retriving mails from INBOX
JavaMail step-by-step