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");
	
		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"); helper.setsubject("plag detected in " + asgmtname + " between " + stud1 + " and " + stud2); sender.send(message); }