Package org.apache.james.mime4j.storage

Examples of org.apache.james.mime4j.storage.StorageBodyFactory.textBody()


        message.setSubject("Saying Hello");

        // 3) set a text body

        StorageBodyFactory bodyFactory = new StorageBodyFactory();
        TextBody body = bodyFactory.textBody("This is a message just to "
                + "say hello.\r\nSo, \"Hello\".");

        // note that setText also sets the Content-Type header field
        message.setText(body);
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.