* @param domainName the domain name to be configured.
*/
public static void runEmailManagementService(
String adminEmail, String password, String domainName) {
try {
EmailManagementService client =
new EmailManagementService(adminEmail, password, domainName, "test");
GenericEntry entry = client.retrieveOutboundGatewaySettings();
LOGGER.log(Level.INFO, "Outbound gateway settings" + entry.getAllProperties());
client.updateOutboundGatewaySettings(AdminSettingsConstants.TEST_EMAIL_ROUTE,
AdminSettingsConstants.TEST_SMTPMODE);
GenericFeed feed = client.retrieveEmailRoutingSettings();
List<GenericEntry> entries = feed.getEntries();
for (GenericEntry genericEntry : entries) {
LOGGER.log(Level.INFO, "Email Routing Settings" + genericEntry.getAllProperties());
LOGGER.log(Level.INFO, "Email Routing Settings" + genericEntry.getId());
// update settings