Examples of EmailManagementService


Examples of com.google.gdata.client.appsforyourdomain.adminsettings.EmailManagementService

   * @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
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.