Solved

using SMTP protocol to GET emails

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

13 Experts available now in Live!

Get 1:1 Help Now