Project

General

Profile

SendSms » History » Version 2

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

1 1 Soh Keong
{{toc}}
2
3
h1. Wiki
4
5 2 Soh Keong
h2. Sample file
6
7
"Sample File Download":/redmine/attachments/download/690/Lapsed_Members_Expiry_Month_Feb2022_SMS.zip
8
9
10
h2. Steps
11 1 Soh Keong
12
1 Test SMS content in DEVELOPMENT to determine is ONE Sms.
13
14
<pre>
15
Sample Script:
16
 
17
Malaysia:
18
$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."
19
 
20
Brunei: 
21
$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."
22
 
23
Singapore: 
24
$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."
25
 
26
</pre>
27
28
Note: 
29
Parameter 1; shopper mobile no.list(siugeng.csv using Siu Geng Mobile no.)  ; format:  mobile_no,shopper_ref_no 
30
Parameter 2; SMS content
31
 
32
For Singapore SMS with display currency by “CURRENCY_SIGN” instant “$”
33
 
34
* Avoid special Character in content
35
36
37
38
Run script:
39
!sms_1.jpg!
40
“Parts” : 1   = 1 SMS
41
42
Check with CM gen report from ginata account portal, to confirm cost (0.0176) = 1 SMS
43
!sms_2.jpg!
44
45
2 Copy a mobile no. list to from EXCEL to text file.
46
!sms_3.jpg!
47
!sms_4.jpg!
48
49
3.  Copy txt file to src-cosway class path At LIVE;
50
!sms_5.png!
51
52
4.  Run script
53
 
54
$JAVA_PATH/java -Dprogram.name=GetShopperRefNoForSmsByFile -classpath $CP GetShopperRefNoForSmsByFile "AUTO_RENEWAL_FOR_LOYALTY_SET_MY_phone_only.txt"
55
!sms_6.png!
56
57
Return bottom unwant data, just want mobile_no & shopper_ref_no 
58
!sms_7.png!
59
60
61
5.  Copy the output file to class path.
62
!sms_8.jpg!
63
64
65
 
66
6.
67
 
68
Sample run script:
69
 
70
<pre>
71
Malaysia:
72
$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."
73
 
74
Brunei: 
75
$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."
76
 
77
Singapore: 
78
$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."
79
 
80
</pre>