Wiki » History » Revision 4
Revision 3 (Soh Keong, 08/22/2022 11:08 AM) → Revision 4/11 (Soh Keong, 08/22/2022 11:48 AM)
{{toc}} h1. Wiki 2. [[SendSms]] h1. Steps 1 Test SMS content in DEVELOPMENT to determine is ONE Sms. <pre> Sample Script: Malaysia: $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." Brunei: $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." Singapore: $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." </pre> Note: Parameter 1; shopper mobile no.list(siugeng.csv using Siu Geng Mobile no.) ; format: mobile_no,shopper_ref_no Parameter 2; SMS content For Singapore SMS with display currency by “CURRENCY_SIGN” instant “$” * Avoid special Character in content Run script: !SMS_send.jpg! “Parts” : 1 = 1 SMS Check with CM gen report from ginata account portal, to confirm cost (0.0176) = 1 SMS !SMS_ginota.jpg! 2 Copy a mobile no. list to from EXCEL to text file. !sms_oriFile.jpg! !sms_txt.jpg! 3. Copy txt file to src-cosway class path At LIVE; !sms_ftp.png! 4. Run script $JAVA_PATH/java -Dprogram.name=GetShopperRefNoForSmsByFile -classpath $CP GetShopperRefNoForSmsByFile "AUTO_RENEWAL_FOR_LOYALTY_SET_MY_phone_only.txt" !sms_script.png! Return bottom unwant data, just want mobile_no & shopper_ref_no !sms_result.png! 5. Copy the output file to class path. !sms_ftp_copy.jpg! 6. Sample run script: <pre> Malaysia: $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." Brunei: $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." Singapore: $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." </pre>