Set<String> emails = new HashSet<>();
emails.add("[email protected]");
emails.add("[email protected]");
mailQ.unsubscribe(emails);
or
mailQ.unsubscribe("[email protected]","[email protected]");
LocalDateTime from = LocalDateTime.now().minusDays(10);
for (UnsubscriberEntity unsubscriber : mailQ.getUnsubscribers(from,Pagination.DEFAULT)) {
System.out.println(unsubscriber.getEmail());
}
for (UnsubscriberEntity unsubscriber : mailQ.getUnsubscriber("[email protected]")) {
System.out.println(unsubscriber.getEmail());
}
mailQ.deleteUnsubscriber("[email protected]");