Project

General

Profile

SendSms » History » Version 1

Soh Keong, 08/22/2022 11:52 AM

1 1 Soh Keong
{{toc}}
2
3
h1. Wiki
4
5
h1. Steps
6
7
1 Test SMS content in DEVELOPMENT to determine is ONE Sms.
8
9
<pre>
10
Sample Script:
11
 
12
Malaysia:
13
$JAVA_PATH/java -Dprogram.name=SendSmsByFile -classpath $CP SendSmsByFile siugeng.csv "COSWAY: Your membership is now auto-renewed. Get a FREE Gift & RM20 eVoucher. Your MEMBER ID is the voucher code. Valid till 31/1/22. Shop now. T&C apply."
14
 
15
Brunei: 
16
$JAVA_PATH/java -Dprogram.name=SendSmsByFileBR -classpath $CP SendSmsByFile siugeng.csv "COSWAY: Your membership is now auto-renewed. Get a FREE Gift & RM20 eVoucher. Your MEMBER ID is the voucher code. Valid till 31/1/22. Shop now. T&C apply."
17
 
18
Singapore: 
19
$JAVA_PATH/java -Dprogram.name=SendSmsByFileSG -classpath $CP SendSmsByFile siugeng.csv "COSWAY:Your membership is now auto-renewed.Enjoy Loyalty Rewards & get your CURRENCY_SIGN10 eVoucher. Your MEMBER ID is the voucher code.Valid till 31/1/22.T&C apply."
20
 
21
</pre>
22
23
Note: 
24
Parameter 1; shopper mobile no.list(siugeng.csv using Siu Geng Mobile no.)  ; format:  mobile_no,shopper_ref_no 
25
Parameter 2; SMS content
26
 
27
For Singapore SMS with display currency by “CURRENCY_SIGN” instant “$”
28
 
29
* Avoid special Character in content
30
31
32
33
Run script:
34
!sms_1.jpg!
35
“Parts” : 1   = 1 SMS
36
37
Check with CM gen report from ginata account portal, to confirm cost (0.0176) = 1 SMS
38
!sms_2.jpg!
39
40
2 Copy a mobile no. list to from EXCEL to text file.
41
!sms_3.jpg!
42
!sms_4.jpg!
43
44
3.  Copy txt file to src-cosway class path At LIVE;
45
!sms_5.png!
46
47
4.  Run script
48
 
49
$JAVA_PATH/java -Dprogram.name=GetShopperRefNoForSmsByFile -classpath $CP GetShopperRefNoForSmsByFile "AUTO_RENEWAL_FOR_LOYALTY_SET_MY_phone_only.txt"
50
!sms_6.png!
51
52
Return bottom unwant data, just want mobile_no & shopper_ref_no 
53
!sms_7.png!
54
55
56
5.  Copy the output file to class path.
57
!sms_8.jpg!
58
59
60
 
61
6.
62
 
63
Sample run script:
64
 
65
<pre>
66
Malaysia:
67
$JAVA_PATH/java -Dprogram.name=SendSmsByFile -classpath $CP SendSmsByFile "AUTO_RENEWAL_FOR_LOYALTY_SET_MY.txt" "COSWAY: Your membership is now auto-renewed. Get a FREE Gift & RM20 eVoucher. Your MEMBER ID is the voucher code. Valid till 31/1/22. Shop now. T&C apply."
68
 
69
Brunei: 
70
$JAVA_PATH/java -Dprogram.name=SendSmsByFileBR -classpath $CP SendSmsByFileBR "AUTO_RENEWAL_FOR_LOYALTY_SET_BR.txt" "COSWAY: Your membership is now auto-renewed. Get a FREE Gift & RM20 eVoucher. Your MEMBER ID is the voucher code. Valid till 31/1/22. Shop now. T&C apply."
71
 
72
Singapore: 
73
$JAVA_PATH/java -Dprogram.name=SendSmsByFileSG -classpath $CP SendSmsByFileSG "AUTO_RENEWAL_FOR_LOYALTY_SET_SG.txt" "COSWAY:Your membership is now auto-renewed.Enjoy Loyalty Rewards & get your CURRENCY_SIGN10 eVoucher. Your MEMBER ID is the voucher code.Valid till 31/1/22.T&C apply."
74
 
75
</pre>