Solved

using SMTP protocol to GET emails

Posted on 2004-09-23
3
219 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

The conference as a whole was very interesting, although if one has to make a choice between this one and some others, you may want to check out the others.  This conference is aimed mainly at government agencies.  So it addresses the various compli…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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