File: onelv.sms

package info (click to toggle)
smssend 2.9-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,104 kB
  • ctags: 367
  • sloc: sh: 7,792; ansic: 5,538; perl: 96; makefile: 70
file content (48 lines) | stat: -rw-r--r-- 1,233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## One.lv script - www.one.lv
# Version 0.02
# Update 20 Oct 2001
# by Massy <mam@wol.it>
#
# Script working for countries : International
# SMSC from  Omnitel Lithuania (+3709950115)
#
# Error codes :
#  -> 1 Invalid User ID
#  -> 2 Password is invalid
#  -> 3 Invalid GSM Number
#  -> 4 Error sending message

NbParams 4
%Login : Your login from www.one.lv
%Password Hidden : Your password
%Tel : International GSM number of recipient without + prefix
%Message Size=140 Convert : Your message

# Getting english version of the site
GetURL www.one.lv
Params action=LanguageAction&language=en
GO

# Logging on One.lv
PostURL www.one.lv
# Referer \%RTFormAction-1-0%
PostData action=LoginUser&formname=login&username=\%Login%&password=\%Password%&eventSubmit_dologin.x=41&eventSubmit_dologin.y=9
# Search for errors
Search Invalid login
ErrorMsg 1 Invalid login or password
GO

# Sending SMS
PostURL http://www.one.lv/
#Referer \%RTFormAction-1-0%
Postdata action=MMailAction&pane=home&formname=mmail-edit&is-popup=false&recipients=\%Tel%&message=\%Message%&count=120&eventSubmit_dosend.x=23&eventSubmit_dosend.y=9



# Search for errors
Search SEND M.MAIL
PrintMsg Message successfully sent
Else
ErrorMsg 4 Error sending message
GO