|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.mail.Message
|
+--javax.mail.internet.MimeMessage
|
+--com.opmath.mail.lite.MailMessage
A MimeMessage that is compatible with the email sending strategy used by
com.opmath.mail.lite.MailClient. The purpose of this class is to allow for
environment-independent email message objects.
Copyright: (c) 2003 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
| Inner classes inherited from class javax.mail.internet.MimeMessage |
javax.mail.internet.MimeMessage.RecipientType |
| Inner classes inherited from class javax.mail.Message |
javax.mail.Message.RecipientType |
| Fields inherited from class javax.mail.internet.MimeMessage |
content, contentStream, dh, flags, headers, modified, saved |
| Fields inherited from class javax.mail.Message |
expunged, folder, msgnum, session |
| Fields inherited from interface javax.mail.Part |
ATTACHMENT, INLINE |
| Constructor Summary | |
MailMessage(javax.mail.Session session,
String subject,
javax.mail.internet.InternetAddress from,
String to,
String cc,
String bcc,
String text)
Constructs an email message. |
|
MailMessage(javax.mail.Session session,
String subject,
javax.mail.internet.InternetAddress from,
String to,
String cc,
String bcc,
String text,
javax.activation.DataSource data,
String dataName)
Constructs an email message with an attachment. |
|
| Methods inherited from class javax.mail.internet.MimeMessage |
|
| Methods inherited from class javax.mail.Message |
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MailMessage(javax.mail.Session session,
String subject,
javax.mail.internet.InternetAddress from,
String to,
String cc,
String bcc,
String text,
javax.activation.DataSource data,
String dataName)
throws javax.mail.MessagingException
There are only four obligatory parameters for the constructor:
session - The email session.
from - There must always be one 'From:' address for the message.
to - There must always be at least one 'To:' address for the message.
dataName - The parameter data is optional. However, if a
data is used, then a dataName must also be provided.
Where a paremeter value is not required, it may be given as null.
session - the Session of the email client.subject - a String subject text, or null.from - the InternetAddress of the sender.to - a String list of email addresses.cc - a String list of email addresses, or null.bcc - a String list of email addresses, or null.text - a String ascii plain text message, or null.data - a DataSource for the attachment, or null.dataName - a String name for the data, or null.javax.mail.MessagingException - If the message could not be constructed.
public MailMessage(javax.mail.Session session,
String subject,
javax.mail.internet.InternetAddress from,
String to,
String cc,
String bcc,
String text)
throws javax.mail.MessagingException
There are only three obligatory parameters for the constructor:
session - The email session.
from - There must always be one 'From:' address for the message.
to - There must always be at least one 'To:' address for the message.
Where a paremeter value is not required, it may be given as null.
session - the Session of the email client.subject - a String subject text, or null.from - the InternetAddress of the sender.to - a String list of email addresses.cc - a String list of email addresses, or null.bcc - a String list of email addresses, or null.text - a String ascii plain text message, or null.javax.mail.MessagingException - If the message could not be constructed.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||