SendEmail¶
Steps¶
Prepare class file¶
1. https://www.tpmserver.tk:9093/TestPage/page/email/email.jsp
2. Paste content to Email Content column
3. Click on the "Source" button.
4. Copy the html content from Email Content column
5. Paste the content to Notepad++
6. Remove empty line --> Edit -> Line Operations -> Remove empty lines
7. Replace '"' with '\"'
8. Replace '^(.+)$' with 'sb.append\("\1"\);' using Search Mode'Regular expression'
9. Copy and paste to 'Stockist_batch.com.ecosway.stockist.main.EmailSend'
10. Compile and upload to path '/usr/ecosway/EMAIL'
Prepare email List¶
11. Copy email to csv file.
12. Open with Notepad++
13. Mark all the text (CTRL+A)
14. Remove duplicate email --> Edit -> Line Operations -> Remove Duplicate Lines
Prepare script file¶
15. open /usr/ecosway/EMAIL/run.sh
16. run script file '/usr/ecosway/EMAIL/run.sh > run.log'
Updated by Soh Keong over 2 years ago ยท 3 revisions