Solved

using SMTP protocol to GET emails

Posted on 2004-09-23
3
218 Views
Last Modified: 2010-04-01
Hi,
I am writing a JSP where I need to GET (not SEND) emails. The proper way of doing this is to create a store object such as:  
Store mstore = msession.getStore("pop3");
Here it will take a protocol such as "pop3" or "imap" as its argument but not "smtp".  The problem is that I need to use the "smtp" protocol because this is what is being used within our facility to GET emails as well as to SEND them. This protocol is typically correct for SENDING but not for GETTING emails. Our network administrator has the IMAP and POP3 protocols turned off on the Microsoft Exchange server and he will not allow any changes here that may effect our emails. The problem is that the getStore function will not accept "smtp" as it is not a typical store protocol argument. This function will accept a full url as oppose to just the protocol. However, when trying to use a full url (URLName object) I still run into the same problem if "smtp" is the protocol.  I have also tried just about everything with the setting of the properties in my program. Still no success. How do I create a store object in my program so I can connect with an "smtp" protocol to GET emails?
                Thanks, Don
0
Comment
Question by:donfmurphy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12137018
by RFC SMTP protocol can't be used to get mails !!!!
POP3 and IMAP can be used to get emails. (or you can use Microdoft API to exchange server ).
What do you mean by: "I need to use the "smtp" protocol because this is what is being used within our facility to GET emails as well as to SEND them" ??
Which program do you use to get emails ???
0
 

Author Comment

by:donfmurphy
ID: 12137511
Hi Ramazanyich,
I access a Microsoft Exchange server to get my emails using Microsoft Outlook. Now I need to do this in a JSP.  I cannot connect here with POP3 or IMAP. So what protocol would I use  that getStore() would accept as an argument?
              Thanks, Don
 
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 250 total points
ID: 12137648
Microsoft Outlook uses Microsoft's  API to access mail storage of Microsoft Exchange sever.
I don't know freeware Java API to access it.
I have found commersial JAVA API to Microsoft Exchange server
http://j-integra.intrinsyc.com/exchange/info/
It canbe used with standard JavaMail API.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with LDAp login using jsp 6 118
dateFashion java challenge 9 149
Unhandled exception type Exception 18 52
mysql jsp example issue 32 74
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Original post  on Monitis Blog. Web performance monitoring is broken into two camps: passive and active. Passive monitoring is defined as looking at real-world historical performance by monitoring actual log-ins, site hits, clicks, requests for…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question