API to Fetch email using SMTP from EXCHANGE server.

Hi There,
We have a customer requirement to fetch e-mails from his EXCHANGE server using SMTP. Our application currently supports fetching e-mail using POP, IMAP.
POP and IMAP is disabled in customer environment and there is no way enable them to fetch e-mails.
Please help me to solve this problem by pointing to some APIs available or code.
I searched but not able to find a solution for this.
Thanks in advance.
Regards,
Krish.

SMTP is generally, almost strictly used for sending mail not fetching.
I understand that they may not be able to use IMAP or POP, as some rented Exchange services block IMAP,POP services so they can ensure the client is sticking to the Exchange product line etc.
Perhaps you could find a Exchange library for Java? im sure there is one about. There are OpenSource solutions for exchange out there as Linux applications like evolution can communicate with Exchange. I beilve the protocol used in Exchange is MAPI? (or SAPI?)
Another solution would be to just use the clients mail client to export the emails to a more portable format (MBOX? or a folder of EMS files) then import them into Java using InputStreams on the files?
Or, Get an opensource Exchange compatible server software, eGroupware springs to mind, set that up as a proxy or a go-between. set it up to retrieve mail from the Exchange server and enable its POP and IMAP functions and retrieve the mail from it.
Either way Im near 100% certain SMTP is not for fetching mail.

Similar Messages

  • IPhone now sends emails using the wrong Exchange server

    I have 2 ActiveSync exchange accounts setup on my iPhone 4S, Gmail and Hotmail.  I have had this setup for awhile, and all of a sudden messages sent with a from: address of gmail.com is being sent by Hotmail.  The message appears in my Hotmail outbox, and headers reveal that it is being sent from hotmail on behalf of gmail.  This was never a problem in the past.  The default account is set to Gmail, and there is no SMTP account since it is Exchange-based.
    Thanks.

    I have the exact same issue reported here.  I have deleted all my mail account and re-added them.  The problem persists.  It does not seem to matter in what order I add the accounts, the messages always are sent from the live.com Exchange account, even if the message shows it is being sent from my work email.  If I delete the live.com account, things work just fine, but as soon as I add it back in, all mail routes through it.  I can see messages that should have been sent through my work Exchange server in the sent items on live.com.  This seems like a very bad bug in IOS...

  • Receive Original Email Whenever I Reply to an Email Using Microsoft Outlook Exchange Server

    This is a problem I've seen other people post about, but I haven't found a solution.  Whenever I reply to an email using Microsoft Outlook 2007 with Exchange Server on my computer, I receive a copy of the original email (not the reply, but the original email that I replied to) on my Curve.  My BB email is set up with BIS and my carrier is Verizon, but I've seen people post about this with other carriers.
    Apparently there is some kind of incompatibility between Microsoft Exchange Server and BIS that is causing this problem.
    This is a huge pain, because everytime I reply to an email, I have to delete a copy of the original email on my blackberry. 
    Does anyone know the solution to this?

    Under "tools", "Options" , "applications" on my computer there isn't a "mailto". so these instructions don't work. Any other ideas?

  • Email problems upgrading from Exchange server 2003...

    My email connections were working perfectly when my email hosting company (1and1) used Exchange 2003 (I have several accounts set up on IMAP4). However as soon as they upgraded to Exchange 2007, I can no longer get access. Needless to say 1and1 say it is an issue for vodafone, and vodafone say I need to contact 1and1.
    Also am I right in thinking that I can only set up one mail for exchange account on my phone ?
    Many thanks

    Hi EGYIT,
    Thanks for your generous sharing : )
    Thanks
    Mavis Huang
    TechNet Community Support

  • Error while sending email using TemplateEmailSender in CSC server

    Hi,
    We are trying to send email using TemplateEmailSender from CSC server. But it is giving Null Pointer Exception in ProfiledMessageSource like below. The same code is working fine in commerce instance but it is failing in CSC instance. We are using ATG2007.1p3
    Any pointers would be helpful.
    Below is the error.
    Error while sending email
    java.lang.NullPointerException
            at atg.userprofiling.dms.ProfiledMessageSource.isConfiguredForProfileSubject(ProfiledMessageSource.java:196)
            at atg.userprofiling.dms.DPSMessageSource.fireEndSessionMessage(DPSMessageSource.java:864)
            at atg.userprofiling.dms.DPSMessageSource.fireEndSessionMessage(DPSMessageSource.java:848)
            at atg.userprofiling.SessionEventTrigger.nameContextElementPreUnbound(SessionEventTrigger.java:553)
            at atg.nucleus.GenericContext.sendPreUnboundEvent(GenericContext.java:200)
            at atg.nucleus.GenericContext.preNotifyRemovedObject(GenericContext.java:528)
            at atg.nucleus.GenericContext.removeElement(GenericContext.java:566)
            at atg.servlet.SessionNameContext.unbindFromNameContext(SessionNameContext.java:557)
            at atg.servlet.SessionNameContext.stopSession(SessionNameContext.java:534)
            at atg.servlet.SessionNameContext.decrementWrapperCount(SessionNameContext.java:242)
            at atg.servlet.SessionBindingReporter.valueUnbound(SessionBindingReporter.java:206)
            at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1625)
            at org.apache.catalina.session.StandardSession.expire(StandardSession.java:749)
            at org.apache.catalina.session.StandardSession.expire(StandardSession.java:655)
            at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1100)
            at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:150)
            at atg.userprofiling.email.TemplateInvoker$TemplateSession.endSession(TemplateInvoker.java:935)
            at atg.userprofiling.email.TemplateEmailSender.createMessage(TemplateEmailSender.java:2387)

    Thanks for the reply.
    My issue is fixed now. It is JBOSS configuration issue. Sessions are not maintained properly that's why we are getting NULL profile in the session. Our application has multiple WARs so we fixed it by setting emptySessionPath to TRUE. If emptySessionPath attribute in server.xml is false, then each WAR will have its own jsessionid cookie.
    I did not touch ProfiledMessageSource as its required for session triggering.

  • Redirection of emails garbled-flat from Exchange 2010

    When we forward email from exchange server to an external contact, recipient receives clear text or garbled emails.
    When we create a rule in Outlook 2010 and forward from there it reaches fine.
    What's the different between doing it from server exchange 2010 and outlook 2010?
    thoughts????  thanks

    Hi,
    For the purpose of forwarding emails, there is no big difference. One is forwarding emails from Exchange server side, the other is forwarding emails from outlook side.
    About the format problem, please check the following setting.
    In the console tree, navigate to Recipient Configuration > Mail Contact.
    In the result pane, select the contact you configured for forwarding email.
    In the action pane, click Properties.
    Use the General tab, check the option Use MAPI rich text format.
    Never   If you select this option, messages sent to this recipient are converted to plain text.
    Always   If you select this option, messages sent to this recipient are in the MAPI rich text format (RTF).
    Use Default Settings   If you select this option, messages sent to this recipient are sent in either MAPI RTF or plain text, depending on the settings of the client computer from which the message is sent.
    Meanwhile, please run the following command to check the format setting on the contact.
    Get-MailContact “Alias” | fl UseMapiRichTextFormat, MessageBodyFormat, MessageFormat
    For more information about these three parameters, please refer to this document
    https://technet.microsoft.com/en-us/library/aa995950(v=exchg.150).aspx
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • Help with Moving Emails from Exchange Server 2013

    Hi Team,
    Help, I need a solution on how to copy incoming and outgoing emails together with their attachments and was hoping someone could help with a solution I need to find for this problem.
    1) I have a need to copy all incoming and outgoing emails & attachments from Exchange Server 2013 mailboxes on a daily basis, so they can be archived into an external 3rd party database overnight.
    I believe that the first step is that I can set up another Exchange mailbox, through Journaling to receive these emails. 
    Is there any way that these emails can then be moved direct from the Journaling mailbox that I have created, to a shared folder on the network? If so what format would they be sent out as e.g. .msg, .ems and what is the process?
    Failing that, could they be sent to an Outlook client (not another Exchange mailbox) on the network and stored in a .pst file? (I have a program that will export them from .pst)
    I would really appreciate any assistance that you can provide in this matter.
    Regards, Greg.

    Hi,
    You can set auto-forward on journaling mailbox and auto-forward emails to another mailbox. Why don’t directly archive the emails from the journaling mailbox “an external
    3rd party database”.
    Thanks,
    Simon Wu
    TechNet Community Support

  • I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    Do I need to delete all my email accounts and start again?

  • How to remove error 59 which occurred while using Send Email Using Smtp Client .VI in Labview 2013.

    Hi,I am trying to run Send Email Using Smtp Client .VI in Labview 2013 examples ,but it gives error 59.Please can anyone suggest how to remove the error.The printscreen is attached below.
    Solved!
    Go to Solution.
    Attachments:
    error.docx ‏310 KB

    Thanks for the help,but i have set the parameters right but still it does not work for me.Please suggest me reasons and how to correct them.
    Attachments:
    error.docx ‏270 KB

  • Forwarding emails from Exchange Server to BB is delayed. Why?

    I have set up a system where users' work address email is forwarded (via Exchange Server -> Delivery Options) to their BBs. However, the users have noticed a delay of 20 - 40 minutes between emails being sent to their work email account and actually arriving on their BBs. I looked in the queues of Exchange Server and found a queue specifically for all vodafone traffic. After 20 minutes or so, all the messages in the queue are sent out in bulk. I have tried forwarding to other accounts (other than vodafone) and everything runs fine without these long delays.
    Vodafone have told me that this is an issue with the people at RIM, and that it is out of their hands.
    Any ideas how I can get rid of thses delays?
    (The users are not interested in any solutions which require their desktop PCs to be left running)
    TIA for any ideas how I can speed these emails forwards along. 

    Thanks for your reply.
    It does arrive instantly, however, as I said initially, forwarding of emails to any other address works fine. It is just the forwarding to vodafone which has delays. I think Exchange queues it because it is having problems contacting the vodafone server. So the problem could lie outside of Exchange. The Vodafone people themselves intimated as much.
    Question is, is there a way round the problem. Any people from RIM out there like to comment?
    Thanks again.

  • Can java mail be used for distributed exchange server?

    H,
    I am trying to connect to MS Exchange Server to read my mails using Java Mail API.
    I have a questions about using it with Exchange server.
    We have 6-7 exchange servers in our company and different users have mailboxes on different servers. My internet mail application will be used by everybody in the company.
    But while connecting to exchange server using java mail I can only cnnnect to one server and port. What happens when user mailbox is not on that server. How can I use javamail in this scenario where user mailboxes are on separate servers??
    Thanks
    [email protected]

    You said that you can connect to Exchange server my you help me with this because i cant connect to Exchange server, mayby you can post me a code example? Thanks

  • Outlook Calendar invite - Not able to send from exchange server.

    Hi,
       I am not able to send outlook calendar invite from exchange server. But if i installed outlook on my local machine/server it works fine. Below code the i used to build calendar invite for your reference.
      public static void sendOutlookInvitationViaICSFile1(EAppointmentMail objApptEmail)
                try
                    log.Info("Invite Started");
                    Microsoft.Office.Interop.Outlook.Application apptApp = new Microsoft.Office.Interop.Outlook.Application();
                    Microsoft.Office.Interop.Outlook.AppointmentItem agendaMeeting = apptApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);
                    DateTime venueDate = Convert.ToDateTime(objApptEmail.VenueDate);
                    string formatedVenueDate = venueDate.Year.ToString() + "/" + venueDate.Month.ToString() + "/" + venueDate.Day.ToString();
                    DateTime from = Convert.ToDateTime(formatedVenueDate + " " + objApptEmail.FromTime);
                    DateTime to = Convert.ToDateTime(formatedVenueDate + " " + objApptEmail.ToTime);
                    System.Net.Mime.ContentType typeHTML = new System.Net.Mime.ContentType("text/html");
                    //Create the Body in HTML format
                    string strBodyText = "Type:Single Meeting\r\nOrganizer: {0}\r\nStart Time:{1}\r\nEnd Time:{2}\r\nTime Zone:{3}\r\nLocation: {4}\r\n\r\n\r\n\r\n{5}";
                    strBodyText = string.Format(strBodyText, objApptEmail.Email, from.ToLongDateString() + " " + from.ToLongTimeString(),
                                        to + " " + to, System.TimeZone.CurrentTimeZone.StandardName,
                                        objApptEmail.Location, objApptEmail.Body);
                    if (agendaMeeting != null)
                        Console.WriteLine("started");
                        agendaMeeting.MeetingStatus =
                            Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting;
                        agendaMeeting.Location = objApptEmail.Location;
                        agendaMeeting.Subject = objApptEmail.Subject;
                        agendaMeeting.Body = strBodyText;
                        agendaMeeting.Start = from;
                        agendaMeeting.End = to;
                        Microsoft.Office.Interop.Outlook.Recipient recipient = agendaMeeting.Recipients.Add(objApptEmail.Email);
                        recipient.Type = (int)Microsoft.Office.Interop.Outlook.OlMeetingRecipientType.olRequired;
                        ((Microsoft.Office.Interop.Outlook._AppointmentItem)agendaMeeting).Send();
                        log.Info("Invite Successfully End");
                        Console.WriteLine("End");
                catch (Exception ex)
                    log.Info("Error: " + ex.Message.ToString());
                    Console.WriteLine("Error: " + ex.Message.ToString());
    In exchange server/ not outlook installed server, i am getting below error.
    "Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
    Help me to send calendar invite without installing outlook on the specified server. Please do the needful.

    Hi
    It is probably that the stuff you doing is for outlook and because outlook is not installed it cannot find the classes.
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • ICal falls short for enterprise use in an Exchange server environment

    (Cross posting from the "Using Mac OS X 10.6 Snow Leopard" discussion).
    I work at a very large software company on a team of people who all use Macs. We were thrilled to install Snow Leopard and begin using the new Exchange server features in Mail, Address Book and iCal. Sadly, though, some very rough edges on the iCal experience are making many people go back to running Entourage, or even Outlook in Parallels (ugh).
    Specifically, iCal does not allow you to control how and when notifications are sent when you edit an existing event. As a meeting organizer, if you make a change, such as adding a new attendee to a meeting that includes 40 other attendees already, all 40 of those existing attendees get a notification, forcing them to re-evaluate the meeting in their inboxes.
    There is no way to save a draft of a meeting invitation without sending it to the attendees. Often the chore of assembling the correct mix of attendees for a meeting takes significant time. If you are unable to complete the agenda or other planning aspects of the event in a single sitting, you must send the meeting as is, which is not a real option if your respect your colleagues time, because they will be receiving multiple updates to your meeting as you complete it.
    Declining a meeting automatically notifies the meeting organizer without giving the invitee a choice. This also creates a lot of unnecessary "noise" in peoples inboxes. Sometimes it is desirable, but not always- the ability to control notification is a very sensitive issue in the context of meeting etiquette.
    You cannot Reply, Reply All, or Forward a meeting calendar event from within iCal.
    There is no support for rich text in the meeting calendar event's "Notes" field - the field in iCal that is used to represent the meeting invitation email's body text. This strips out meaning and complicates the workflow for attending a meeting.
    Getting people to participate in collaborative work in large distributed organizations is a challenge as it is. We cannot afford to use tools that work against the goal. Apple, please hurry up and provide the rest of the features required to really USE an Exchange calendar client in an enterprise environment.

    "He also wants to get his calendar appointments and address book (contacts), but he doesn't want to use Entourage"
    You need to use GroupCal by Snerdware but we have found it not to be a really good product in our office. The address book has the ability to sync to exchange server many have indicated it doesn't work (Address Book/Preferences/General Tab/Sync with Exchange)
    You could try Thunderbird mail product not used that but I doubt any of the Tasks, To-Dos and Calendar come over...now Entourage used to be horrible with this sync but now with 11.3.6 (or whatever it is now) our users see calendar events, to-dos and the LDAP directory
    Though I am a Mac fan, still in a windows world you cannot be too choosy they should just use entourage for an outlook like product.
    NOTE do NOT go to Exchange 2007 tons of IMAP problems our Mac users are unable to get mail (and yet our Windows Admin could care less)
    good luck

  • Migrate from Exchange Server 2011 to Mac OSX Lion Mail Server

    Hi all,
    I'm looking to migrate from Exchange Server 2011 to Mac OSX Lion Mail Server.  I work for a company with roughly 30 employees and they use exchange for mail, contacts and calendars.  We want to take full advantage of OSX Server and to completly get off of exchange.
    What are the best ways to do this?  Are there any tools available to help this process?

    I agree with the points made by Strontium90. If you have any PCs then Apple's mail/contacts/calendar software is a poor choice. Kerio Connect as a mail/contacts/calendar server would not only support Macs but would also do a good job supporting PCs running Outlook.
    If you are going to become a pure Apple site, then you could use just the Apple software and this would be cheaper than using Kerio. For 30 users this might be a suitable solution, however even in a pure Apple environment many people prefer Kerio. For example I find Kerio much more pleasent when dealing with email addresses across multiple domains, email aliases, email group addresses, and so on. Kerio also has built-in email archiving, that is keeping a record of all emails. Kerio also provides a web-browser client for accessing email, calendar and contacts. It is worth noting that as standard Mountain Lion Server no longer includes a webmail feature. While I personally find the Kerio webclient rather ugly it does work.
    There are some annoyances I have with Kerio, firstly they have always charged a 'maintenance' fee for their software. This provided access to software updates, and in the past also provided access to Kerio technical support. Unfortunately they now only let you make two (2) support cases per year for that cost, and you now have to pay extra for any more cases. Also while they added support for EWS (Exchange Web Service) to allow using Outlook 2011 for Mac as a supported email client, they did a poor job of this so that it does not work properly with any other EWS compatible client. This means it will not work in EWS mode with Apple Mail, nor with Outlook for Windows. While there are other ways to connect these other clients, this seems a foolish move and there have been plenty of requests to fix this.
    Apple's Mail client uses EWS to connect to a 'real' MS Exhange server.

  • EWS Push Notification : Notification Service is not getting called from Exchange Server.

    I have written 2 web services 1) Subscribing to Exchange Server 2) Notification client
    I am able to create subscription to Exchange Server. But from Exchange server my notification client webservice is nt getting called. I am not sure how i am missing out any setting. below is my subscribe code and notification client code.
    Subscribe code :
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
                    service.UseDefaultCredentials = true;
                    service.Url = new Uri(exchangeServerurl);
                    FolderId parentId= FindFolderIdByDisplayName(service, "Order", WellKnownFolderName.PublicFoldersRoot);
                     pushSubscription = service.SubscribeToPushNotifications(
                                new FolderId[] {FindFolderIdfromRoot(service, "EmpCreatealert", parentId)},
                                new Uri(notificationService)         /* The endpoint of the listener. */,
                                1                              /* Get a status event every 5 minutes if no new events
    are available. */,
                                null                           /* watermark: null to start a new subscription. */,
                                EventType.NewMail);
    Notification client : 
     public class Notification : NotificationServicePortType, INotification 
            public SendNotificationResponse SendNotification(SendNotificationRequest request)
                log("Enter SendNotification");
                SendNotificationResponse snr = new SendNotificationResponse();
                snr.SendNotificationResult = new SendNotificationResultType();
                snr.SendNotificationResult.SubscriptionStatus = SubscriptionStatusType.OK;
                return snr;
    Can anyone suggest me what els i should do to get notification client to get called.

    How are you testing this ? Are you just creating posts in the Public Folder or is the folder mail enabled and your sending email to it ?
    Are you getting the heartbeat notifications ?
    Have you tested your endpoint is accessible from the Exchange Server ? are you getting any error logged see
    http://www.infinitec.de/post/2009/06/21/Troubleshooting-Push-notifications-failures.aspx
    Your only subscribing to the NewMail event on public folder I would suggest at least for testing you subscribe to the CreateItem, MoveItem, DeleteItem events as well to see if other event fires when you create and delete Items in the folder. You might also
    want to test something like
    http://blogs.msdn.com/b/emeamsgdev/archive/2012/12/20/ews-push-notification-sample.aspx which is a basic sample
    Cheers
    Glen

Maybe you are looking for

  • Office live mail can't connect to Palm Pre Please Help!!!

    My email is through office live, where I set up my own domain .org. I have tried for hours every solution that's been posted online. I have called palm pre support and I knew more then the nice person trying to assist me. Not one solution works even

  • Purchase mountain lion

    Hello, I'm upgrading an older Mac from 10.6 to 10.8. So I purchased 10.8 yesterday thru the App Store and charged the $19.95 price to my credit card. Requested mail delivery, figuring I could download it right away, just like every othr bit of softwa

  • Customer cannot logon

    Customer can logon but when he tries to register for an email invite the account would not work. He asked for a password reset and now he cannot get in at all and has not gotten the password in email. 106177 account # [email protected] Customer needs

  • Problem when working with multiple sequences

    Dears, In order to make life easier (I am currently working on a rather long project), I work with multiple sequences, one per chapter. My problem: I named one sequence "assembly sequences" in order to add the various sequences. I dropped the sequenc

  • Sequence setting for HD

    What should the field dominance be set to for a sequence using HD 1440x1080 (16:9) video footage? Upper (odd)? Thanks. Pedro