Examples of MailType


Examples of br.gov.frameworkdemoiselle.mail.internal.enums.MailType

  }

  public static Session createSession(final Config config) {
    Session session = null;

    MailType type = config.getType();
    if (type == null) {
      type = MailType.LOCAL;
    }

    switch (type) {
View Full Code Here

Examples of org.sonatype.micromailer.MailType

  /**
   * Prepend to message body a link to this Nexus instance (base server URL).
   */
  private void prependNexusBaseUrl(final MailRequest request) {
    final String baseNexusUrl = globalRestApiSettings.getBaseUrl();
    final MailType mailType = getEMailer().getMailTypeSource().getMailType(request.getMailTypeId());

    final StringBuilder messageBody = new StringBuilder().append("Message from: ");

    if (mailType != null && mailType.isBodyIsHtml()) {
      messageBody
          .append(
              StringUtils.isNotBlank(baseNexusUrl)
                  ? String.format("<a href=\"%s\">%s</a>", baseNexusUrl, baseNexusUrl)
                  : "<i>(Set the Base URL parameter in Nexus Server Administration to include in future emails)</i>"
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.