Project

General

Profile

Wiki » History » Version 3

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

1 1 Soh Keong
{{toc}}
2
3
h1. Wiki
4
5
h1. Steps
6
7 2 Soh Keong
1 Test SMS content in DEVELOPMENT to determine is ONE Sms.
8 1 Soh Keong
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 2 Soh Keong
!SMS_send.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_ginota.jpg!
39
40
2 Copy a mobile no. list to from EXCEL to text file.
41 3 Soh Keong
!sms_oriFile.jpg!
42
!sms_txt.jpg!
43
44
3.  Copy txt file to src-cosway class path At LIVE;
45
!sms_ftp.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_script.png!
51
52
Return bottom unwant data, just want mobile_no & shopper_ref_no 
53
!sms_result.png!
54
55
56
5.  Copy the output file to class path.
57
!sms_ftp_copy.jpg!
58
59
60
 
61
6.
62
 
63
Sample run script:
64
 
65
66
<pre>
67
Malaysia:
68
$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."
69
 
70
Brunei: 
71
$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."
72
 
73
Singapore: 
74
$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."
75
 
76
</pre>