Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.7 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.7 KB

NewsAggregator

Sen final year project.

How to send mail using template

// content before button
String firstMessage = "Verify yourself and be a member of vidico community.";
// value you want to show i.e click here or reset password or confirm
String buttonValue = "Confirm";
// link for button
String confirmationUrl = "http://localhost:8084/NewsAggregator/Controller?action=confirm&key=" + u.getId();
// content after button
String lastMessage = "If the link doesn't work please copy below link and paste it directly into your browser." + "<br> " + confirmationUrl;

MailService mailContent = new MailService(firstMessage, lastMessage, buttonValue, confirmationUrl);
                
boolean mailStatus = mailContent.sendMail(u.getEmail(), "Confirmatiom Mail");

How to use sequence

        MongoClient mongo = (MongoClient) request.getServletContext().getAttribute("MONGO_CLIENT");
        SequenceDAO seqDao = new SequenceDAO(mongo);
        
        // get sequence for COMMENT starting from 1
        long n = seqDao.getNextSequenceId("COMMENT");
        System.out.println(n);

Libraries

Download these libraries and add it to project.

Installation

  1. clone repository
  2. import it
  3. clean build
  4. run

License

Free Software, Hell Yeah!