/**
	 * send an email to given email address
	 * @param userId1
	 * @param userId2
	 * @param asgmtName
	 * @param score
	 * @param recipientMail
	 * @param reportLink
	 * @throws Exception
	 */
public void sendEmail(String userId1, String userId2, String asgmtName, double score, String recipientMail,
			String reportLink) throws Exception {
		MimeMessage message = sender.createMimeMessage();
		MimeMessageHelper helper = new MimeMessageHelper(message);
		String stud1 = userService.findById(userId1).getfName();
		String stud2 = userService.findById(userId2).getfName();
		helper.setTo("anubhuti.vyas.28@gmail.com");
		helper.setText("Codesniffer found plagiarised submission with similarity score" + score
				+ "Click the below link to view the full report+\n" + "https://s3.amazonaws.com/codesniffer-reports/"
				+ reportLink+ "/match0.html");
		// to do add link in email
		helper.setSubject("Plag detected in " + asgmtName + " between " + stud1 + " and " + stud2);
		sender.send(message);
	}
public void sendEmail(String userId1, String userId2, String asgmtName, double score, String recipientMail,
String reportLink) throws Exception {
MimeMessage message = sender.createMimeMessage();
MimeMessageHelper helper = new MimeMessageHelper(message);
String stud1 = userService.findById(userId1).getfName();
String stud2 = userService.findById(userId2).getfName();
helper.setTo("anubhuti.vyas.28@gmail.com");
helper.setText("Codesniffer found plagiarised submission with similarity score" + score
+ "Click the below link to view the full report+\n" + "https://s3.amazonaws.com/codesniffer-reports/"
+ reportLink+ "/match0.html");
// to do add link in email
helper.setSubject("Plag detected in " + asgmtName + " between " + stud1 + " and " + stud2);
sender.send(message);
}
public void sendEmail(String userId1, String userId2, String asgmtName, double score, String recipientMail,
String reportLink) throws Exception {
MimeMessage message = sender.createMimeMessage();
MimeMessageHelper helper = new MimeMessageHelper(message);
String stud1 = userService.findById(userId1).getfName();
String stud2 = userService.findById(userId2).getfName();
helper.setTo("anubhuti.vyas.28@gmail.com");
helper.setText("Codesniffer found plagiarised submission with similarity score" + score
+ "Click the below link to view the full report+\n" + "https://s3.amazonaws.com/codesniffer-reports/"
+ reportLink+ "/match0.html");
// to do add link in email
helper.setSubject("Plag detected in " + asgmtName + " between " + stud1 + " and " + stud2);
sender.send(message);
}
public void sendEmail(String userId1, String userId2, String asgmtName, double score, String recipientMail,
String reportLink) throws Exception {
MimeMessage message = sender.createMimeMessage();
MimeMessageHelper helper = new MimeMessageHelper(message);
String stud1 = userService.findById(userId1).getfName();
String stud2 = userService.findById(userId2).getfName();
helper.setTo("anubhuti.vyas.28@gmail.com");
helper.setText("Codesniffer found plagiarised submission with similarity score" + score
+ "Click the below link to view the full report+\n" + "https://s3.amazonaws.com/codesniffer-reports/"
+ reportLink+ "/match0.html");
// to do add link in email
helper.setSubject("Plag detected in " + asgmtName + " between " + stud1 + " and " + stud2);
sender.send(message);
}