WebSphere Adapter for Email

Sending requests to the adapter

Once the application is started, you can use the emailwebclient.jsp file provided with the sample to send requests to the Email adapter. This file will simulate a J2EE client invoking an outbound request so that you may verify the that the adapter works correctly.

Before you begin

Before you can run the JSP file, you must have deployed and started the sample EAR file to the WebSphere Process Server test server.

How to perform this task

  1. Open a web browser such as Internet Explorer or Firefox.
  2. Type the following URL in the browser window: http://localhost:9080\MyWebProject\emailwebclient.jsp Note that the port number in the example URL may be different than in your setup. Make sure that you specify the port and IP numbers that you specified in your server profile. An Email Resource Adapter Service Client will open.
  3. Supply the From, To, CC, BCC, and Subject information you wish to use. The "To" field is a required field. All mail addresses used with the jsp file must be in "mailid@mydomain.com" format.
  4. In the Pass through Content field, enter anything you like. For example, type "Hi! Look at this wonderful outbound mail!"
  5. Optional: For the File References field, specify the path to any local files that you would like to attach to the test mail. For example, when C:\EmailRA\Testfile.txt is typed in the File References field (and it exists), Testfile.txt will be attached. If it is not found, a .notfound message will be included in the e-mail.
  6. When you have finished specifying the e-mail fields, click Submit.

Result

Once the Submit button has been clicked, the request will be created. The Email adapter service will be invoked with this request. When a response is created and a mail is sent to the user specified in the "To" field, the recipient will receive a message on the same JSP window as follows:
Locating the EmailOutboundInterface service...
Invoked the EmailOutboundInterface Successfully.
Response mail sent out successfully
Check out the mail server for results!

Terms of use |

Last updated: Mon 30 Oct 2006 03:44:38

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)