info.magnolia.module.mail
Class MailTemplate

java.lang.Object
  extended by info.magnolia.module.mail.MailTemplate

public class MailTemplate
extends java.lang.Object

Mail template used to send emails with Magnolia.


Field Summary
static java.lang.String MAIL_ATTACHMENTS
           
static java.lang.String MAIL_BODY
           
static java.lang.String MAIL_CC
           
static java.lang.String MAIL_CONTENT_TYPE
           
static java.lang.String MAIL_FROM
           
static java.lang.String MAIL_HTML
           
static java.lang.String MAIL_PARAMETERS
           
static java.lang.String MAIL_SUBJECT
           
static java.lang.String MAIL_TEMPLATE_FILE
           
static java.lang.String MAIL_TO
           
static java.lang.String MAIL_TO_WORKFLOW
           
static java.lang.String MAIL_TYPE
           
 
Constructor Summary
MailTemplate()
           
 
Method Summary
 void addAttachment(MailAttachment attachment)
           
 java.util.List<MailAttachment> getAttachments()
           
 java.lang.String getBcc()
           
 java.lang.String getCc()
           
 java.lang.String getContentType()
           
 java.lang.String getFrom()
           
 java.lang.String getName()
           
 java.util.Map<java.lang.String,java.lang.Object> getParameters()
           
 java.lang.String getReplyTo()
           
 java.lang.String getSubject()
           
 java.lang.String getTemplateFile()
           
 java.lang.String getText()
           
 java.lang.String getTo()
           
 java.lang.String getType()
           
 javax.mail.Session initSession()
           
 void setAttachments(java.util.List<MailAttachment> attachments)
           
 void setBcc(java.lang.String bcc)
           
 void setCc(java.lang.String cc)
           
 void setContentType(java.lang.String contentType)
           
 void setFrom(java.lang.String from)
           
 void setName(java.lang.String name)
           
 void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
           
 void setReplyTo(java.lang.String replyTo)
           
 void setSubject(java.lang.String subject)
           
 void setTemplateFile(java.lang.String templateFile)
           
 void setText(java.lang.String text)
           
 void setTo(java.lang.String to)
           
 void setType(java.lang.String type)
           
 void setValues(java.util.Map<java.lang.String,java.lang.Object> params, java.util.List<MailAttachment> attachments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIL_CONTENT_TYPE

public static java.lang.String MAIL_CONTENT_TYPE

MAIL_FROM

public static java.lang.String MAIL_FROM

MAIL_SUBJECT

public static java.lang.String MAIL_SUBJECT

MAIL_TO

public static java.lang.String MAIL_TO

MAIL_TO_WORKFLOW

public static java.lang.String MAIL_TO_WORKFLOW

MAIL_CC

public static java.lang.String MAIL_CC

MAIL_TYPE

public static java.lang.String MAIL_TYPE

MAIL_PARAMETERS

public static java.lang.String MAIL_PARAMETERS

MAIL_ATTACHMENTS

public static java.lang.String MAIL_ATTACHMENTS

MAIL_BODY

public static java.lang.String MAIL_BODY

MAIL_HTML

public static final java.lang.String MAIL_HTML
See Also:
Constant Field Values

MAIL_TEMPLATE_FILE

public static final java.lang.String MAIL_TEMPLATE_FILE
See Also:
Constant Field Values
Constructor Detail

MailTemplate

public MailTemplate()
Method Detail

getParameters

public java.util.Map<java.lang.String,java.lang.Object> getParameters()

setParameters

public void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)

getAttachments

public java.util.List<MailAttachment> getAttachments()

setAttachments

public void setAttachments(java.util.List<MailAttachment> attachments)

addAttachment

public void addAttachment(MailAttachment attachment)

getFrom

public java.lang.String getFrom()

setFrom

public void setFrom(java.lang.String from)

getTo

public java.lang.String getTo()

setTo

public void setTo(java.lang.String to)

getSubject

public java.lang.String getSubject()

setSubject

public void setSubject(java.lang.String subject)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getCc

public java.lang.String getCc()

setCc

public void setCc(java.lang.String cc)

setValues

public void setValues(java.util.Map<java.lang.String,java.lang.Object> params,
                      java.util.List<MailAttachment> attachments)

getTemplateFile

public java.lang.String getTemplateFile()

setTemplateFile

public void setTemplateFile(java.lang.String templateFile)

getBcc

public java.lang.String getBcc()

setBcc

public void setBcc(java.lang.String bcc)

getReplyTo

public java.lang.String getReplyTo()

setReplyTo

public void setReplyTo(java.lang.String replyTo)

initSession

public javax.mail.Session initSession()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.