Greenmail WebApp server API

887 views Asked by At

i want to use greenmail as a webapp. is there a way in java to dynamically create user accounts on the greenmail server?

javamail does not contain api for creating users on mail server. is there a rest i can use or anything in java code for dynamically create user accounts on the greenmail server?

really need help here.

Thanks!

1

There are 1 answers

2
Marcel On

See https://github.com/greenmail-mail-test/greenmail/issues/80 (available in next release > 1.4.1):

You can delete a user via

greenMail.getManagers().getUserManager().deleteUser(user);