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 if you are using Tomcat, 8080 if you are using EAServer.
Unwired Accelerator rid – the default resource identifier is “21.”
Navigate to:
%SYBASE%\UnwiredAccelerator70\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 |
Identifies the outbound e-mail server. |
pop.host |
Identifies the inbound e-mail server. |
smtp.auth |
Indicates whether to authenticate outgoing e-mail. true – authenticates outgoing e-mail. If your SMTP host requires authentication for sending e-mails, set this to “true.” false – does not authenticate outgoing e-mail. This is the default setting. |
email.id |
Identifies the user account for Unwired Accelerator to use on the inbound e-mail server to access the inbound mailbox. The default is “ua.” |
email.pwd |
Identifies the password for Unwired Accelerator to use to access the inbound mailbox. The default is “ua.” |
ua.host |
Identifies the 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 The default is “localhost.” |
ua.port |
Identifies the port on which UA is running.
The default is |
ua.rid |
Identifies the
resource ID used for Answers Anywhere integration. The default is |
ua.reg.uri |
Indicates the Uniform Resource Identifier
for Unwired Accelerator access to Answers Anywhere. 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 |
Indicates whether to use role verification for Answers Anywhere. Set to “true” to use role verification. Set to “false” if role verification is not needed. |
application/ msword |
|
application/ x-msexcel |
|
application/pdf |
|
text/html |
|
text/plain |
|
image/jpg |
|
image/giff |
Following is an example file:
smtp.host=out_mailserver.sybase.com smtp.auth=false pop.host=in_mailserver.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”.
If you are using Tomcat, 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 Start. This starts the process that handles e-mail queries.
If you are using EAServer, open a Command Prompt window and navigate to %SYBASE%\UnwiredAccelerator70\scripts. At the command line, enter:
checkmail eas
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 Developer’s Guide and the Mobile Application Development Tutorial for information.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |