KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > mail > templates > impl > SimpleEmail


1 package info.magnolia.cms.mail.templates.impl;
2
3 import info.magnolia.cms.mail.templates.MgnlEmail;
4
5 import java.util.Map JavaDoc;
6
7 import javax.mail.Session JavaDoc;
8
9
10 /**
11  * Date: Mar 30, 2006 Time: 1:01:01 PM
12  * @author <a HREF="mailto:niko@macnica.com">Nicolas Modrzyk</a>
13  */

14 public class SimpleEmail extends MgnlEmail {
15
16     public SimpleEmail(Session JavaDoc session) throws Exception JavaDoc {
17         super(session);
18         this.setHeader(CONTENT_TYPE, TEXT_PLAIN_UTF);
19     }
20
21     public void setBody(String JavaDoc body, Map JavaDoc parameters) throws Exception JavaDoc {
22         this.setContent(body, TEXT_PLAIN_UTF);
23     }
24 }
25
Popular Tags