How can I retrieve mail from an Exchange 2007 server? - email

I need to write an application that can read email and attachments from a mailbox in Exchange 2007. What is the best way to do this? Outlook Redemption works, but is there a better way?

You could simply us POP3 or IMAP to access the mails on the Exchange server.
Depending on your environment you would probably find libraries that provide POP3 or IMAP implementation.

There are several ways to do this. Starting from POP3 or IMAP (as indicated by Dominik) to more powerful options such as the ones listed at Exchange Development Technologies.
I would avoid starting new developments with APIs that are being phased out by Microsoft, so you may want to take a look at the Exchange Server 2010's version of the article above.
A safe bet would be to use Exchange Web Services (a.k.a EWS). You should be able to program against it using any language capable of doing SOAP Web Services.
If you are programming against .Net Framework 3.5 or above and Exchange Server 2007 SP1 or above, you can use EWS Managed API which is the client-side API for EWS and offers a much cleaner experience than the one provided by auto-generated web service proxies (via Add Web Reference menu item).

Use Microsoft Exchange Server MAPI Editor (MFCMAPI) which is a great tool to retrieve MSG (or EML) files.
I personally use the cfexchangeConnection in coldfusion to reach out to mailboxes (as well as all other items in exchange)

Related

Looking for a mail server for test automation purpose

I am automating an application using selenium webdriver which sends the email alerts on clicking on a particular button. So I need a dedicated email system which will receive the emails and we can use its APis or some other feature which can be used to verify whether the mail was actually sent and we can also verify the mail content.
You can use Mailinator service, it is free if you just want to navigate the emails. However it also provides the API for dev purposes but its paid.
I'd recommend GreenMail:
GreenMail is an open source, intuitive and easy-to-use test suite of
email servers for testing purposes.
Typical use cases include mail integration testing or a lightweight
sand boxed mail server for development.
Supports SMTP, POP3 and IMAP including SSL
Prevents accidental email leaking to real mail servers
Provides different deployment models,
such as WAR module or JBoss GreenMail Service
Easily embeddable in JUnit tests for integration testing
Lightweight with few dependencies
GreenMail is the first and only library that offers a test framework
for both receiving and retrieving emails from Java.
I did a bit R&D and found a solution. The solution is using the Gmail API.
Below is a link for more description and clarification-
EMAIL VERIFICATION FROM GMAIL ACCOUNT IN SELENIUM WEBDRIVER (JAVA)
This looks like a good solution, But I am still looking for the best approach.
Kindly let me know if a dedication email platform really exist for testing purpose.

SharePoint 2013 APIs

Looking for somewhere that describes the differences between the SharePoint 2013 APIs, specifically I'm wondering what APIs I can use to create databases and site collections. As far as I can tell, only the Server API or Powershell will let me do that. I was hoping I could be proved wrong and be able to use the client object model or the REST services. Anyone know for sure?
No only server-side OM offers these kind of operations. Both CSOM and REST are built to deal with data and services hosted within SharePoint.
Here is an MSDN article which best describes what you are looking for:
http://msdn.microsoft.com/en-us/library/sharepoint/jj164060.aspx
The largest set of APIs is in the server object model of managed
classes. At the level of SharePoint Foundation 2013, this object model
includes classes and members that enable programmatic control of the
basic site and list structure of SharePoint Foundation. Most of these
classes are in the Microsoft.SharePoint namespace. In addition, you
can extend almost every SharePoint Foundation component by using the
server object model, including workflows, alerts, Web Parts, basic
search, and Microsoft Business Connectivity Services (BCS). The server
object model also includes an extensive set of APIs enable extensions
of the administration and security system of SharePoint Foundation,
including backup, farm health and diagnostics, logging, farm and web
application management, upgrade, deployment, caching, and Windows
PowerShell customization.
The highlighted part is not available in other API.

Does Microsoft Exchange 2007 have a REST API?

I have the need to communicate with Microsoft Exchange 2007 and wondering if there is a RESTful API i can use to communicate? Previously i have attempted to connect with the managed API (EWSJavaApi) however with no success. I'm also aware of the SOAP webservice exposed by exchange however would prefer the REST option if one exists.
Nope, sorry. In 2007 REST was not nearly as common as it is today. Maybe in the next version but probably not.

Easiest way to interface between a web app and SAP

Greetings!
I've spent some time researching how to communicate with SAP from a PHP web application, but the documentation is more than spare. The ways I found are:
Creating IDoc files, some sort of proprietary plain-text format. But how do I stick them in SAP when they are created on the webserver?
Coding a Windows Application using the SAP BAPI. This way, you have full control and access - but also a lot of pain.
Accessing the RFC (Remote Function Calls), preferrably via SOAP. This would be the best way to connect to a web app.
What I could not find out is: what is the easiest way to connect? Which versions of SAP support SOAP? Anything I've missed?
Thanks for your help!
How you connect to SAP is dependent on what version of SAP, your SAP license and what you're connecting with and what you are trying to do.
If you are trying to access SAP standard functionality - i.e. Read or Update a SAP Service Order, the standard BAPI should allow you to do what you need. (Note that a BAPI is just an RFC with a standard API, which is released for customer use by SAP).
There are various connectors to SAP, but for newer releases of SAP (2004s and later) many RFC function modules are exposed as webservices, which should be ideal for your purposes.
You may have to ask an ABAP developer (or even a non-developer with SAP experience) to help you find which RFC's are available and whether they are exposed as webservices. (If not an ABAP developer should be able to wrap BAPI as a webservice with a simplified interface).
If you are trying to do something that SAP have not provided prior functionality for, or perhaps access custom developed objects you will definitely need the assistance of an ABAP developer to exposes an RFC to you.
Depending on your system setup there may be some system administration tasks to be done in order to allow you to access the SAP system. Whether by RFC or otherwise. (Useful transactions to search for are SICF and SOAMANAGER). The SAP Basis administrator may also need to set up some RFC connections for you.
If your company uses SAP PI/XI or a non-SAP integration engine, it may be easier to connect but that would be in very limited cases.
I've used IDOCs before for single message transfer, but I'm not sure that it would have any advantage over BAPI's or webservices for any Business Type transactions. Although IDOCs have been around for a while and may be quite stable if standard ones exist.
I have to admit that I've only scratched the surface around connecting to SAP, but I hope this is useful.
The third option is the easiest.
Accessing the RFC (Remote Function
Calls), preferrably via SOAP.

What are the possible ways to send a feedback e-mail form?

My professor in the uni has asked me to design a simple website with a basic feedback form.
the form should NOT use 'mailto' for sending the feedback form e-mail
the form should NOT use server-side scripting (PHP, etc) for sending the feedback form e-mail.
Is is possible at all to send an e-mail from a website form without using any of these 2 options? Is there yet another option for sending an e-mail in this situation?
You could embed a Java applet or ActiveX control which does it for you.
No. The client-server model used by HTTP has the client and the server, both of which the professor has disallowed you to use. (Email does not use HTTP, but it's apparent in your question that you need to send mail from an HTTP context, and you need a computer on which to do that.)
I am not aware of a solution without using any of these 2 options.
Mybe your professor only doesn't whant that you scipt a solution. I guess there are plenty of feedback solutions as services on the web. Most web hoster also have a mail cgi script or something like this installed...
The professor agreed, that any of the following 4 technologies can be used for this project:
Java applet
ActiveX component
Javascript
Flash (Actionscript).
Many thanks for the help.
(How exactly sending an e-mail is going to be achieved with these technologies without referencing i.e. 'mailto' in Javascript or in the flash application or without referencing the server is going to be the strange part of this coding though).