Casted to an int in SendMail and changed ArrayList() to ArrayList<Integer>()