CompClubEmailBlast is designed to automate the process of sending e-mail blast for NUS Computing Club. It uses the e-mail blast template for the Club.
There is no error checking, the inputs are assumed to be correct.
The programme takes many assumptions. Some of them are:
- The inputs are well formed as expected by the programme, there is no error checking done by the programme
- For every e-mail item, there's at least a title; the image, text, and link are optional
- The information on the no. of items, titles, and links must be available in
main.txtin the folder that contains all the contents. Each item is listed inmain.txtchronologically. A title is needed for each item while the link&link-text pair is optional - Text files are named as
txti.htmlwhereiis a number greater than1 - Image files are named as
imgi.htmlwhereiis a number greater than1
The e-mail template can be viewed as consisting of the following:
- Header
- Content Item(s), each with:
- Title
- Image(optional)
- Text(optional)
- Link(optional)
- Footer
These dependencies are included in the programme
- JavaMail API (
https://java.net/projects/javamail/pages/Home)
These steps will demonstrate the basic functionality of the programme using the sample files
- update
samplePrivateInfo.txtfile with the required information - Run
CCmailerusing the 4 arguments:samplePrivateInfo.txt sample/ sample/ sampleTest.htmlusign Eclipse IDE OR place the relevant files(samplePrivateInfo.txtand thesample/folder) together, compile the required files and run CCmailer with the 4 arguments:- For example,
java CCmailer samplePrivateInfo.txt sample/ sample/ sampleTest.html
- For example,
- Check that you receive the sample e-mail
- The ouput html,
sampleTest.html, is in thesample/folder