|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.mail.Email
org.apache.turbine.util.mail.MultiPartEmail
A multipart email.
This class is used to send multi-part internet email like messages with attachments.
To create a multi-part email, call the default constructor and then you can call setMsg() to set the message and call the different attach() methods.
Field Summary | |
protected javax.mail.internet.MimeMultipart |
emailBody
Deprecated. Body portion of the email. |
protected javax.mail.internet.MimeBodyPart |
main
Deprecated. The message container. |
Fields inherited from class org.apache.turbine.util.mail.Email |
ATTACHMENTS, charset, CONTENT_TYPE, EMAIL_BODY, EMAIL_SUBJECT, FILE_SERVER, ISO_8859_1, KOI8_R, MAIL_HOST, MAIL_SERVER, MAIL_SMTP_FROM, MAIL_TRANSPORT_PROTOCOL, message, RECEIVER_EMAIL, RECEIVER_NAME, SENDER_EMAIL, SENDER_NAME, SMTP, TEXT_HTML, TEXT_PLAIN, US_ASCII |
Constructor Summary | |
MultiPartEmail()
Deprecated. Initialize the multipart email. |
|
MultiPartEmail(org.apache.torque.util.Criteria criteria)
Deprecated. Constructor used to initialize attributes. |
Method Summary | |
MultiPartEmail |
attach(javax.activation.DataSource ds,
java.lang.String name,
java.lang.String description)
Deprecated. Attach a file specified as a DataSource interface. |
MultiPartEmail |
attach(javax.activation.DataSource ds,
java.lang.String name,
java.lang.String description,
java.lang.String disposition)
Deprecated. Attach a file specified as a DataSource interface. |
MultiPartEmail |
attach(EmailAttachment attachment)
Deprecated. Attach an EmailAttachement. |
MultiPartEmail |
attach(java.net.URL url,
java.lang.String name,
java.lang.String description)
Deprecated. Attach a file located by its URL. |
MultiPartEmail |
attach(java.net.URL url,
java.lang.String name,
java.lang.String description,
java.lang.String disposition)
Deprecated. Attach a file located by its URL. |
protected void |
init()
Deprecated. Initialize the multipart email. |
protected void |
initCriteria(org.apache.torque.util.Criteria criteria)
Deprecated. Uses the criteria to set the fields. |
Email |
setMsg(java.lang.String msg)
Deprecated. Set the message of the email. |
Methods inherited from class org.apache.turbine.util.mail.Email |
addBcc, addCc, addReplyTo, addTo, initialize, send, setCharset, setFrom, setSentDate, setSubject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.mail.internet.MimeMultipart emailBody
protected javax.mail.internet.MimeBodyPart main
Constructor Detail |
public MultiPartEmail() throws javax.mail.MessagingException
MessagingException.
javax.mail.MessagingException
public MultiPartEmail(org.apache.torque.util.Criteria criteria) throws javax.mail.MessagingException
This method uses the criteria object to set the different fields of the e-mail. The expected fields of the Criteria are:
criteria
- A Criteria.
MessagingException.
javax.mail.MessagingException
Method Detail |
protected void init() throws javax.mail.MessagingException
init
in class Email
MessagingException.
javax.mail.MessagingException
protected void initCriteria(org.apache.torque.util.Criteria criteria) throws javax.mail.MessagingException
This method uses the criteria object to set the different fields of the e-mail. The expected fields of the Criteria are:
initCriteria
in class Email
criteria
- A Criteria.
MessagingException.
javax.mail.MessagingException
public Email setMsg(java.lang.String msg) throws javax.mail.MessagingException
setMsg
in class Email
msg
- A String.
MessagingException.
javax.mail.MessagingException
public MultiPartEmail attach(EmailAttachment attachment) throws javax.mail.MessagingException
attachment
- An EmailAttachment.
MessagingException.
javax.mail.MessagingException
public MultiPartEmail attach(java.net.URL url, java.lang.String name, java.lang.String description) throws javax.mail.MessagingException
url
- The URL of the file (may be any valid URL).name
- The name field for the attachment.description
- A description for the attachment.
MessagingException.
javax.mail.MessagingException
public MultiPartEmail attach(java.net.URL url, java.lang.String name, java.lang.String description, java.lang.String disposition) throws javax.mail.MessagingException
url
- The URL of the file (may be any valid URL).name
- The name field for the attachment.description
- A description for the attachment.disposition
- Either mixed or inline.
MessagingException.
javax.mail.MessagingException
public MultiPartEmail attach(javax.activation.DataSource ds, java.lang.String name, java.lang.String description) throws javax.mail.MessagingException
ds
- A DataSource interface for the file.name
- The name field for the attachment.description
- A description for the attachment.
MessagingException.
javax.mail.MessagingException
public MultiPartEmail attach(javax.activation.DataSource ds, java.lang.String name, java.lang.String description, java.lang.String disposition) throws javax.mail.MessagingException
ds
- A DataSource interface for the file.name
- The name field for the attachment.description
- A description for the attachement.disposition
- Either mixed or inline.
MessagingException.
javax.mail.MessagingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |