Project Wonder 2.0

er.javamail
Class ERMailDeliveryHTML

java.lang.Object
  extended byer.javamail.ERMailDelivery
      extended byer.javamail.ERMailDeliveryComponentBased
          extended byer.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

Field Summary
protected  String _htmlContent
          Holds the HTML content
 
Fields inherited from class er.javamail.ERMailDeliveryComponentBased
_component, _sessionDictionary
 
Fields inherited from class er.javamail.ERMailDelivery
_attachments, _callbackObject, _charset, _inlineAttachments, _mimeMessage, callBackClassName, callBackMethodName, DefaultCharset
 
Constructor Summary
ERMailDeliveryHTML()
           
 
Method Summary
protected  String htmlContent()
           
 void newMail()
          Creates a new mail instance within ERMailDelivery.
protected  javax.activation.DataHandler prepareMail()
          Pre-processes the mail before it gets sent.
 void setHiddenPlainTextContent(String content)
          Sets the Plain text preamble that will be displayed set in top of HTML source.
 void setHTMLContent(String content)
          Sets the HTML content.
 
Methods inherited from class er.javamail.ERMailDeliveryComponentBased
component, componentContentString, sessionDictionary, setComponent, setSessionDictionary, setWOComponentContent
 
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
 

Field Detail

_htmlContent

protected String _htmlContent
Holds the HTML content

Constructor Detail

ERMailDeliveryHTML

public ERMailDeliveryHTML()
Method Detail

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()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.