Avatar of vkchaitu82
vkchaitu82
 asked on

Jmail access exchange server?

Can  I access Exchange server using Jmail.
I am able to access the POP server using Jmaill and retrive messages.

I am looking for a snap shot of the code or any information how to access Exchange server from Jmail.

This is how I am able to make Jmail access pop server.

                URLName urln = new URLName("pop3://" +emailUser+":"+emailPass+"@"+pop3Server+"/INBOX");
out.println("<!-- urln = " + urln + "-->");
                POP3Store store = new POP3Store(session,urln);
                Folder folder = null;
                int msgCount = 0;
                Message[] msgs = new Message[10];
                try {
                        store.connect();
                        folder = store.getFolder("INBOX");
                        folder.open(Folder.READ_ONLY);
                        msgCount = folder.getMessageCount();
                        folder.fetch(msgs,new FetchProfile());

.....
ExchangeEmail ServersJava

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
CEHJ

What would you want to do on the server if you can get access? Isn't POP enough?
vkchaitu82

ASKER
I want to access to exchange server in the same way I am able to access to the pop server to read a email.
MicheleMarcon

CEHJ has asked what do you want to do.
Read an email? You already do this. Or am I missing something?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
vkchaitu82

ASKER
I want top read a email from my jmail application.
when the server is pop3 , it works and it gets connected.
when the server is Exchange server it does not work.

So i am looking for some help, how I can access exchange server to read a email from my jmail application.
ASKER CERTIFIED SOLUTION
CEHJ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.