|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.mail.WTMimeMessage
EMailMessage
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 |
private static final String RESOURCE
private static final String CLASSNAME
private static final String versionID
private static final String MIME_CHARSET_PROPERTY
private static final String MIME_CHARSET_CONTENT_PROPERTY
private static final String MIME_CHARSET_HEADERS_PROPERTY
private static final String DEFAULT_MIME_CHARSET
private static final String ADD_BODY_PART_ENCODING_ERROR
private static final String ALL_UNSENT_RECIPIENTS
private static final String ANY_UNSENT_RECIPIENTS
private static final String VALID_UNSENT_RECIPIENTS
private static final String SMTP_PROTOCOL
private static final String MAIL_HOST
private static final String SEND_FAILURE
private static final String SMTP_PASSWORD
private static final String SMTP_USERNAME
private static final boolean VERBOSE
private static final javax.mail.Session session
private Vector toAddresses
private javax.mail.internet.MimeMessage message
private Locale locale
boolean messageIsEmpty
private static WTProperties properties
private String defaultCharset
private String contentCharset
private String headersCharset
Constructor Detail |
public WTMimeMessage()
Method Detail |
public void addRecipient(String address) throws MessagingException
MessagingException
public Vector getRecipients()
public void setLocale(Locale l)
public Locale getLocale()
public void setFrom(String address) throws MessagingException
MessagingException
public String[] getFrom() throws MessagingException
MessagingException
public void setSubject(String subject) throws MessagingException
MessagingException
public String getSubject() throws MessagingException
MessagingException
public void setBody(String body) throws MessagingException
MessagingException
public void addBodyPart(String type, String content) throws MessagingException, IOException
type
- MIME type of the body part, e.g. "text/html" or "text/plain"content
- the content of the body part
MessagingException
IOException
public void send()
private javax.mail.internet.InternetAddress[] getEmailAddresses()
private String getHeadersCharset()
private String getCharset()
private String getContentCharset()
public static javax.mail.internet.MimeMessage WTMessage() throws javax.mail.MessagingException
EMailMessage
MessagingException
- Thrown if one is received while initializing the session.
javax.mail.MessagingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |