public String serverIncommingEmail(String mailTo, String mailFrom, String mailSubject, String mailBody) {
		String[] to = mailTo.split(" ");
		String[] from = mailFrom.split(" ");
		Pattern patronSubject = Pattern.compile("^MAIL SUBJECT \"(.*)\"");
		Matcher subjectMatcher = patronSubject.matcher(mailSubject);
		subjectMatcher.find();
		Pattern patronBody = Pattern.compile("^MAIL BODY \"(.*)\"");
		Matcher bodyMatcher = patronBody.matcher(mailBody);
		bodyMatcher.find();
		
		if(subjectMatcher.group(1).equals("")){
			return "SEND ERROR 203";
		}
		if(bodyMatcher.group(1).equals("")){
			return "SEND ERROR 204";
		}
		try {
			connection.connect();
			connection.executeQuery(CHECK_CONTACT+"'"+to[2].toLowerCase()+"'");
			if(connection.next()){
				IncomingEmail newEmail = new IncomingEmail (subjectMatcher.group(1),bodyMatcher.group(1),from[2].toLowerCase(),(long)(Integer.parseInt((String) connection.getString("ID"))));
				connection.close();
				connection.connect();
				connection.executeNonQuery(INSERT_MAIL+"('"+newEmail.getBody()+"','"+newEmail.getSubject()+"','"+newEmail.getSentBy()+"',"+newEmail.getRead()+",'"+newEmail.getReceivedOn()+"',"+newEmail.getToUserID()+")");
				connection.close();
				return "OK SEND MAIL";
			}
		} catch (Exception e) {
			System.out.println(e);
			System.out.println("Ocurrio un error al tratar de conectarse.");
		} finally {
			try {
				connection.close();
			} catch (UGDBDisconnectException e) {
				e.printStackTrace();
			}
		}
		return "SEND ERROR 201 "+to[2];
	}