Example usage for org.apache.commons.mail EmailAttachment INLINE

List of usage examples for org.apache.commons.mail EmailAttachment INLINE

Introduction

In this page you can find the example usage for org.apache.commons.mail EmailAttachment INLINE.

Prototype

String INLINE

To view the source code for org.apache.commons.mail EmailAttachment INLINE.

Click Source Link

Document

Definition of the part being inline.

Usage

From source file:lucee.runtime.tag.MailParam.java

/**
 * @param disposition The disposition to set.
 * @throws ApplicationException //from   ww  w . jav a  2s . c o m
 */
public void setDisposition(String disposition) throws ApplicationException {
    disposition = disposition.trim().toLowerCase();
    if (disposition.equals("attachment"))
        this.disposition = EmailAttachment.ATTACHMENT;
    else if (disposition.equals("inline"))
        this.disposition = EmailAttachment.INLINE;
    else
        throw new ApplicationException("disposition must have one of the following values (attachment,inline)");

}