public static void createUsers ( GreenMailOperations greenMail , InternetAddress ... addresses ) { for ( InternetAddress address : addresses ) { greenMail . setUser ( address . getAddress ( ) , address . getAddress ( ) ) ; } }
Create users for the given array of addresses . The passwords will be set to the email addresses .