This section describes how to enable users to query Unwired Accelerator applications using an e-mail client.
Create a dedicated e-mail account, such as “askua,” on your mail system for Unwired Accelerator to check. Your e-mail system must provide pop3 access to this e-mail account.
Make a note of the following values:
Outbound e-mail server (smtp.host) – for example “smtp.pacbell.yahoo.com.”
Inbound e-mail server (pop.host) – for example “lab2k.sybase.com.”
E-mail account name – for example “askua.”
E-mail password – for example, “ua.”
Unwired Accelerator host name – for example, “localhost” or “lab2k.”
Unwired Accelerator port – the default port is “4040.”
Unwired Accelerator rid – the default resource identifier is “21.”
Navigate to:
%SYBASE%\UA65\tomcat\webapps\dejima\WEB-INF\classes
Open the uadejima.properties file in a text editor and set the property files for your environment, using information in Table 2-3.
Property name |
Description |
---|---|
smtp.host |
Outbound e-mail server. |
pop.host |
Inbound e-mail server. |
smtp.auth |
true – authenticates outgoing e-mail. If your SMTP host requires authentication for sending e-mails, set this to “true.” false – this is the default setting. Does not authenticate outgoing e-mail. |
email.id |
User account for Unwired Accelerator to use on the inbound e-mail server to access the inbound mailbox. |
email.pwd |
Password for Unwired Accelerator to use to access the inbound mailbox. |
ua.host |
Host and domain name of the machine where Unwired Accelerator is installed. For example, if the machine name is “lab2k” and the domain is “sybase.com,” enter: lab2k.sybase.com |
ua.port |
The port UA is running on. The default
is |
ua.rid |
The resource ID used for Answers Anywhere
integration. The default is |
default.opal |
The location of the Answers Anywhere
agent network. The default setting is: To use the Simplified Chinese agent network on PDAs, set this value
to: |
role.check |
Set to “true” to use role verification. Set to “false” if role verification is not needed. |
Following is an example file:
smtp.host=lab2k.sybase.com smtp.auth=false pop.host=lab2k.sybase.com email.id=ua email.pwd=ua ua.host=localhost ua.port=4040 ua.rid=21 ua.reg.uri=/onepage/mpindex.jsp default.opal=/dbdsUnwired/wired.opal role.check=false application/msword=doc application/x-msexcel=xls application/pdf=pdf text/html=html text/plain=txt image/jpg=jpg image/giff=gif
Save the file and close it.
Restart the Tomcat application server as described in “Starting and stopping the Tomcat application server”.
Open a Web browser window, enter the following and click Add:
http://
hostname.domain:port/dejima/mail.jsp
Substitute your information, such as:
http://lab2k.sybase.com:4040/dejima/mail.jsp
Click Add. This starts the process that handles e-mail queries.
To test the configuration, send an e-mail to the dedicated e-mail account, such as “askua.” Include the query on the subject line of the e-mail. See the Unwired Accelerator Feature Guide and the Mobile Application Development Tutorial for information.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |