er.javamail
Class ERMailDeliveryHTML
java.lang.Object
er.javamail.ERMailDelivery
er.javamail.ERMailDeliveryComponentBased
er.javamail.ERMailDeliveryHTML
- public class ERMailDeliveryHTML
- extends ERMailDeliveryComponentBased
This ERMailDelivery subclass is specifically crafted for HTML messages
using a WOComponent as redering device.
- Author:
- Camille Troillard
Methods inherited from class er.javamail.ERMailDelivery |
_attachments, _inlineAttachments, addAttachment, addInlineAttachment, attachments, buildMessage, callbackObject, charset, finishMessagePreparation, inlineAttachments, internetAddressWithEmailAndPersonal, mimeMessage, removeAttachment, sendMail, sendMail, session, setBCCAddresses, setCallBackClassWithMethod, setCallbackObject, setCCAddresses, setCharset, setFromAddress, setFromAddress, setInternetAddresses, setMimeMessage, setReplyToAddress, setSession, setSubject, setToAddress, setToAddress, setToAddresses, setXMailerHeader, xMailerHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_htmlContent
protected String _htmlContent
- Holds the HTML content
ERMailDeliveryHTML
public ERMailDeliveryHTML()
setHiddenPlainTextContent
public void setHiddenPlainTextContent(String content)
- Sets the Plain text preamble that will be displayed set in top of HTML source.
Non-HTML compliant mail readers can at least display this message.
setHTMLContent
public void setHTMLContent(String content)
- Sets the HTML content. Note that if you set the
WOComponent to be used when rendering the message
this content will be ignored.
- Parameters:
content
- HTML content to be used
newMail
public void newMail()
- Creates a new mail instance within ERMailDelivery. Sets hasHiddenPlainTextContent to false.
- Overrides:
newMail
in class ERMailDelivery
htmlContent
protected String htmlContent()
prepareMail
protected javax.activation.DataHandler prepareMail()
throws javax.mail.MessagingException
- Pre-processes the mail before it gets sent.
- Specified by:
prepareMail
in class ERMailDelivery
- Returns:
- the multipart used to put in the mail.
- Throws:
javax.mail.MessagingException
- See Also:
ERMailDelivery.prepareMail()
Copyright © 2002 – 2004 Project Wonder.