private void attendServer(ServerProcessor sp) {
    	DataProvider dataProvider = new DataProvider();
    	String mailTo ="", mailFrom = "", mailSubject = "", mailBody = "";
    	while(sp.hasMessages()) {
			String message = sp.getMessage();
			System.out.println("Mensaje Recibido: " + message);
			switch (getExpression(message)) {
				case "SEND MAIL":
					mailTo = ""; mailFrom =""; mailSubject = ""; mailBody="";
					mailTo = message;
					break;
				case "MAIL FROM":
					mailFrom = message;
					break;
				case "MAIL SUBJECT":
					mailSubject = message;
					break;
				case "MAIL BODY":
					mailBody = message;
					break;
				case "END SEND MAIL":
					sp.send(dataProvider.serverIncommingEmail(mailTo, mailFrom, mailSubject, mailBody));
					break;
				case "CHECK CONTACT":
					sp.send(dataProvider.serverCheckContact(message));
					break;
				case "SEND ERROR 202":
					sp.send("SEND ERROR 202");
					break;
				default:
					sp.send("INVALID COMMAND ERROR");
					break;
			}
		}
    }