Solved

using SMTP protocol to GET emails

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Learn how the use of a bunch of disparate tools requiring a lot of manual attention led to a series of unfortunate backup events for one company.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now