public void sendContentProviderMail(Screen s, String data) {
		//System.out.println("Send mail to CP: " + data);
		
		JSONObject form = (JSONObject) JSONValue.parse(data);
		
		String email = (String) form.get("email");
		String id = (String) form.get("identifier");
		String provider = (String) form.get("provider");
		String subject = (String) form.get("subject");
		String title = (String) form.get("title");
		String message = (String) form.get("message");
		message = message.replaceAll("(\r\n|\n)", "<br />");
		
		//Form validation
		JSONObject mailResponse = new JSONObject();
		Set<String> keys = form.keySet();
		boolean errors = false;
		for(String key : keys) {
			String value = (String) form.get(key);
			if(value==null || value.isEmpty()) {
				errors = true;
				break;
			}
		}
		
		if(errors) {
			mailResponse.put("status", "false");
			mailResponse.put("message", "Please fill in all the fields.");
			s.putMsg("copyright", "", "showMailResponse(" + mailResponse + ")");
			return;
		}
		
		
		String toemail = null;
		//Find the provider email
		FsNode providerNode = Fs.getNode("/domain/euscreenxl/user/" + provider + "/account/default");
		if(providerNode != null){
			toemail = providerNode.getProperty("email"); 
		}else {
			toemail = "euscreen-portal@noterik.nl";
		}
		String body = "Identifier: " + id + "<br/>";
		body += "Title: " + title + "<br/>";
		body += "Link to item on EUScreen:<br/>";
		body += "<a href=\"http://euscreen.eu/item.html?id=" +id+ "\">http://euscreen.eu/item.html?id="+id+"</a><br/>";
		body += "-------------------------------------------<br/><br/>";
		body += "Subject: " + subject + "<br/>";
		body += "Message:<br/>";
		body += message + "<br/><br/>";
		body += "-------------------------------------------<br/>";
		body += "You can contact the sender of this message on: <a href=\"mailto:"+email+"\">"+email+"</a><br/>";
		
		if(this.inDevelMode()){ //In devel mode always send the email to the one filled in the form
			toemail = email;
		}
		
		//!!! Hack to send the email to the one filled in the form (for testing purposes). When on production it should be removed
		//toemail = email;
		
		boolean success = true;
		if(toemail!=null) {
			try {
				mailer.sendMessage(new EuscreenCopyrightEmail(toemail, body));
			} catch(Exception e) {
				System.out.println("Failed sending email: " + e);
				success = false;
			}
		} else {
			success = false;
		}
		
		String response = "Your message has been successfuly sent.";
		if(!success) response = "There was a problem sending your mail.<br/>Please try again later.";
		
		mailResponse.put("status", Boolean.toString(success));
		mailResponse.put("message", response);
		
		s.putMsg("copyright", "", "showMailResponse(" + mailResponse + ")");
		
	}