background image

Setting up for the Internet

25

Making the script report errors

You can instruct the script to report any problems experienced during logging in.

There are two useful ways of doing this:

1.

At the point in the script where you think there could be a problem, use the 

EXIT

 command, together with one of the

pre-defined error strings, e.g.:

sendlogin:

SEND

 

“fred15”

WAIT

 

15

{
“word:” sendpass
}
GOTO

 

loginfail

loginfail:

EXIT

 

KErrLoginFail$

This section of script sends the username

 fred15

, then waits to receive

 word:

. If this is not received within 15

seconds, the script jumps to the 

loginfail

 procedure, which closes the script at the same time as reporting a login

failure.

There is a full list of the different errors that you can use with the 

EXIT

 command in the 

EXIT

 section of the script

glossary below.

2.

Use the 

WAIT

 command to wait for more than one response, including alternative responses which may indicate that

the server is reporting an error. E.g.

sendlogin:

SEND “fred15”
WAIT 15
{
“word:” sendpass
“nvalid” badlogin
“ncorrect” badlogin
“rror” failure
}
EXIT KerrTimeOut$

badlogin:

EXIT KErrLoginFail$

failure:

EXIT KErrGeneral$

In the above section of script, the machine sends the username

 fred15

, then waits to receive

 word:

. If this is received

within 15 seconds, the script jumps to the 

sendpass

 procedure (not detailed in the above extract). If, instead, your

machine receives the 

nvalid

ncorrect

 or 

rror

 prompts, the script will jump to either the 

badlogin

 or 

failure

procedures, depending on the kind of error being reported. If none of the above messages are received within the
allowed time, the script will exit with a “timed out” message.

Summary of Contents for 5MX Series

Page 1: ...Setting up for the Internet Setting up your Series 5 for Email Web Version 2 00 May 1999 English...

Page 2: ...without notice Some names referred to are registered trademarks Copyright Symbian Ltd 1997 1999 Part of the IMAP4 software addition is Copyright ANT Ltd 1998 All rights reserved Incorporates MPPC comp...

Page 3: ...m 14 add a new mobile phone modem 14 remove a modem from the list 14 control the modem loudspeaker 14 change the modem speed 14 use an infrared modem 15 just dial the number I type 15 use a call back...

Page 4: ...net 4 Appendix The scripting language 19 Overview of creating connection scripts 19 When to use scripts 19 How to use scripts 19 Creating a script for your Internet Service Provider 20 Scripting langu...

Page 5: ...to the Internet read the Quick setup for advanced users section Read the Quick setup for Infrared mobile phones section for information on how to set up your Series 5 to work with an infrared mobile p...

Page 6: ...nternet account From your Internet Service Provider or in the information you received when you opened your account Whether or not you need to specify your IP address when you connect Only a small num...

Page 7: ...lls you what information you need to put in each Control panel section in the System screen and what you need to set up in the Email program Setting What to set up there Modems section of Control pane...

Page 8: ...as soon as you connect to the mailbox On the Incoming page Enter the address of the server you receive email from in the mailbox type server line Enter your Mailbox login username and enter and confir...

Page 9: ...t Generic modem settings If the generic settings don t work for your modem you can add settings for a new one See add a new modem in the How do I section later on Setting the location you dial from Wh...

Page 10: ...een 2 Tap the New button and On the Service page enter the your access number in the Standard dial up number line Include the country and area codes You may need to omit the first 0 from the area code...

Page 11: ...is is the password you need to use to access your Remote mailbox Confirm password Enter your password again for confirmation Advanced email settings Tap the Advanced button when you are editing the Em...

Page 12: ...is set up correctly is to send yourself an email message then retrieve it from your Remote mailbox To send the email message 1 Tap on the Email icon 2 Tap the New button on the Toolbar and select Emai...

Page 13: ...Email tap New on the Toolbar and select SMS 2 Enter the number of the phone you want to send the message to followed by your message then use Save to outbox on the Toolbar 3 Make sure your phone and S...

Page 14: ...he appropriate details for your type of modem 4 On the Advanced page select Mobile in the Modem type line Tap OK remove a modem from the list To remove any of the modems from the list of pre defined m...

Page 15: ...t add or remove any information to or from the numbers you type in use a call back service You can set up a call back service where the server you log into calls you back on a specified number You may...

Page 16: ...your chargecard and tap Options then Edit or tap Options and select New if your card isn t displayed in the list 5 On the Details page Enter your account number Enter and confirm your PIN 6 On the Ru...

Page 17: ...ng the country and area code disable my alternative access numbers If you ve set up alternative access numbers for each location you dial from but don t want to use them at present you can turn them o...

Page 18: ...y enter your DNS address To specify your DNS address manually 1 Open the Internet section of the Control panel in the System screen 2 Select your Current Internet service and tap the Edit button 3 Tap...

Page 19: ...will need to use a script How to use scripts To use a script for logging in 1 Open the Internet section of the Control panel in the System screen 2 With the Internet service you use selected tap the E...

Page 20: ...late codes on the Tools menu and remove the tick from the Local echo box 6 Make sure the Port active line on the Transfer menu is ticked then select Capture to file on the same menu 7 Give the capture...

Page 21: ...trol panel in the System screen 2 With the Internet service you use selected tap the Edit button 3 Tap on the Login page and put a tick in the Use login script box Script writing The capture file you...

Page 22: ...ollowed by a colon E g waitforlogin 3 On a new line type WAIT followed by the number of seconds you want the machine to wait for the prompt Then start another new line and type a character You will no...

Page 23: ...SEND followed by The text you want to send within marks or The characters login_name if you want your Series 5 to send whatever you have entered in the Username line on the Account page for your Inte...

Page 24: ...login_name 0x0d WAIT 15 word sendpass sendpass READ After sending the login name the script jumps to the sendpass procedure In the sendpass procedure the READ command lets the user type their passwor...

Page 25: ...you can use with the EXIT command in the EXIT section of the script glossary below 2 Use the WAIT command to wait for more than one response including alternative responses which may indicate that the...

Page 26: ...orts a general error KErrModemError Reports that there was an error with the modem KErrModemInitError Reports that there was an error initialising the modem KErrModemResetError Reports that there was...

Page 27: ...ble name longer than this will result in an error occurring during the login process WAIT WAIT n expr1 label1 expr2 label2 expr3 label3 The WAIT command pauses the script for n seconds or until any of...

Page 28: ...ates for 17 IP address 18 Location settings 9 Loop command in the scripting language 26 mailbox login 11 password 11 messages storing 18 MIME encoding 11 mobile phone setting up to use 8 modem configu...

Reviews: