wt.mail
Class WTMimeMessage

java.lang.Object
  extended bywt.mail.WTMimeMessage

Deprecated. As of Windchill 6.2.6, replaced by EMailMessage

public class WTMimeMessage
extends Object

Sends a mime message using JavaMail

Supported API: true

Extendable: false


Field Summary
private static String ADD_BODY_PART_ENCODING_ERROR
          Deprecated.  
private static String ALL_UNSENT_RECIPIENTS
          Deprecated.  
private static String ANY_UNSENT_RECIPIENTS
          Deprecated.  
private static String CLASSNAME
          Deprecated.  
private  String contentCharset
          Deprecated.  
private static String DEFAULT_MIME_CHARSET
          Deprecated.  
private  String defaultCharset
          Deprecated.  
private  String headersCharset
          Deprecated.  
private  Locale locale
          Deprecated.  
private static String MAIL_HOST
          Deprecated.  
private  javax.mail.internet.MimeMessage message
          Deprecated.  
(package private)  boolean messageIsEmpty
          Deprecated.  
private static String MIME_CHARSET_CONTENT_PROPERTY
          Deprecated.  
private static String MIME_CHARSET_HEADERS_PROPERTY
          Deprecated.  
private static String MIME_CHARSET_PROPERTY
          Deprecated.  
private static WTProperties properties
          Deprecated.  
private static String RESOURCE
          Deprecated.  
private static String SEND_FAILURE
          Deprecated.  
private static javax.mail.Session session
          Deprecated.  
private static String SMTP_PASSWORD
          Deprecated.  
private static String SMTP_PROTOCOL
          Deprecated.  
private static String SMTP_USERNAME
          Deprecated.  
private  Vector toAddresses
          Deprecated.  
private static String VALID_UNSENT_RECIPIENTS
          Deprecated.  
private static boolean VERBOSE
          Deprecated.  
private static String versionID
          Deprecated.  
 
Constructor Summary
WTMimeMessage()
          Deprecated.  
 
Method Summary
 void addBodyPart(String type, String content)
          Deprecated. Used to create multipart MIME messages.
 void addRecipient(String address)
          Deprecated.  
private  String getCharset()
          Deprecated. Gets the MIME character set specified by the charset properties in WTProperties for the specified locale.
private  String getContentCharset()
          Deprecated. Gets the MIME character set specified by the content charset properties in WTProperties for the specified locale.
private  javax.mail.internet.InternetAddress[] getEmailAddresses()
          Deprecated.  
 String[] getFrom()
          Deprecated.  
private  String getHeadersCharset()
          Deprecated. Gets the MIME character set specified by the headers charset properties in WTProperties for the specified locale.
 Locale getLocale()
          Deprecated.  
 Vector getRecipients()
          Deprecated.  
 String getSubject()
          Deprecated.  
 void send()
          Deprecated.  
 void setBody(String body)
          Deprecated. Sets the body of a plaintext email message with only 1 part.
 void setFrom(String address)
          Deprecated.  
 void setLocale(Locale l)
          Deprecated.  
 void setSubject(String subject)
          Deprecated.  
static javax.mail.internet.MimeMessage WTMessage()
          Deprecated. As of Windchill 6.2.6, replaced by EMailMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

versionID

private static final String versionID
Deprecated. 
See Also:
Constant Field Values

MIME_CHARSET_PROPERTY

private static final String MIME_CHARSET_PROPERTY
Deprecated. 
See Also:
Constant Field Values

MIME_CHARSET_CONTENT_PROPERTY

private static final String MIME_CHARSET_CONTENT_PROPERTY
Deprecated. 
See Also:
Constant Field Values

MIME_CHARSET_HEADERS_PROPERTY

private static final String MIME_CHARSET_HEADERS_PROPERTY
Deprecated. 
See Also:
Constant Field Values

DEFAULT_MIME_CHARSET

private static final String DEFAULT_MIME_CHARSET
Deprecated. 
See Also:
Constant Field Values

ADD_BODY_PART_ENCODING_ERROR

private static final String ADD_BODY_PART_ENCODING_ERROR
Deprecated. 
See Also:
Constant Field Values

ALL_UNSENT_RECIPIENTS

private static final String ALL_UNSENT_RECIPIENTS
Deprecated. 
See Also:
Constant Field Values

ANY_UNSENT_RECIPIENTS

private static final String ANY_UNSENT_RECIPIENTS
Deprecated. 
See Also:
Constant Field Values

VALID_UNSENT_RECIPIENTS

private static final String VALID_UNSENT_RECIPIENTS
Deprecated. 
See Also:
Constant Field Values

SMTP_PROTOCOL

private static final String SMTP_PROTOCOL
Deprecated. 
See Also:
Constant Field Values

MAIL_HOST

private static final String MAIL_HOST
Deprecated. 

SEND_FAILURE

private static final String SEND_FAILURE
Deprecated. 

SMTP_PASSWORD

private static final String SMTP_PASSWORD
Deprecated. 

SMTP_USERNAME

private static final String SMTP_USERNAME
Deprecated. 

VERBOSE

private static final boolean VERBOSE
Deprecated. 

session

private static final javax.mail.Session session
Deprecated. 

toAddresses

private Vector toAddresses
Deprecated. 

message

private javax.mail.internet.MimeMessage message
Deprecated. 

locale

private Locale locale
Deprecated. 

messageIsEmpty

boolean messageIsEmpty
Deprecated. 

properties

private static WTProperties properties
Deprecated. 

defaultCharset

private String defaultCharset
Deprecated. 

contentCharset

private String contentCharset
Deprecated. 

headersCharset

private String headersCharset
Deprecated. 
Constructor Detail

WTMimeMessage

public WTMimeMessage()
Deprecated. 
Method Detail

addRecipient

public void addRecipient(String address)
                  throws MessagingException
Deprecated. 
Throws:
MessagingException

getRecipients

public Vector getRecipients()
Deprecated. 

setLocale

public void setLocale(Locale l)
Deprecated. 

getLocale

public Locale getLocale()
Deprecated. 

setFrom

public void setFrom(String address)
             throws MessagingException
Deprecated. 
Throws:
MessagingException

getFrom

public String[] getFrom()
                 throws MessagingException
Deprecated. 
Throws:
MessagingException

setSubject

public void setSubject(String subject)
                throws MessagingException
Deprecated. 
Throws:
MessagingException

getSubject

public String getSubject()
                  throws MessagingException
Deprecated. 
Throws:
MessagingException

setBody

public void setBody(String body)
             throws MessagingException
Deprecated. 
Sets the body of a plaintext email message with only 1 part.

Throws:
MessagingException

addBodyPart

public void addBodyPart(String type,
                        String content)
                 throws MessagingException,
                        IOException
Deprecated. 
Used to create multipart MIME messages.

Parameters:
type - MIME type of the body part, e.g. "text/html" or "text/plain"
content - the content of the body part
Throws:
MessagingException
IOException

send

public void send()
Deprecated. 

getEmailAddresses

private javax.mail.internet.InternetAddress[] getEmailAddresses()
Deprecated. 

getHeadersCharset

private String getHeadersCharset()
Deprecated. 
Gets the MIME character set specified by the headers charset properties in WTProperties for the specified locale. If there is no charset property for the specified locale, use the default headers charset property. In the case that there are no character sets specified for headers for the locale, charset will be defined according to the first defined character set found in the following order: headers(no locale), charset(locale), charset(no locale), and in the case that there are no character sets specified, ISO-8859-1 is used as the default.


getCharset

private String getCharset()
Deprecated. 
Gets the MIME character set specified by the charset properties in WTProperties for the specified locale. If there is no charset property for the specified locale, use the default charset property. In the case that there are no character sets specified, ISO-8859-1 is used as the default.


getContentCharset

private String getContentCharset()
Deprecated. 
Gets the MIME character set specified by the content charset properties in WTProperties for the specified locale. If there is no charset property for the specified locale, use the default content charset property. In the case that there are no character sets specified for headers for the locale, charset will be defined according to the first defined character set found in the following order: content(no locale), charset(locale), charset(no locale), and in the case that there are no character sets specified, ISO-8859-1 is used as the default.


WTMessage

public static javax.mail.internet.MimeMessage WTMessage()
                                                 throws javax.mail.MessagingException
Deprecated. As of Windchill 6.2.6, replaced by EMailMessage

Use the SMTP host specified by the property wt.mail.mailhost and initialize a JavaMail session.

Supported API: true

Returns:
A new MimeMessage for the session.
Throws:
MessagingException - Thrown if one is received while initializing the session.
javax.mail.MessagingException