public class NuclosMail
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static NuclosMailContentType |
HTML |
static NuclosMailContentType |
PLAIN |
Constructor and Description |
---|
NuclosMail() |
NuclosMail(java.lang.String sRecipient,
java.lang.String sSubject) |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(NuclosFile pFileToAttach)
attaches a
NuclosFile to the email |
void |
addInlineAttachment(NuclosFile pFileToAttach)
Attaches a
NuclosFile representing an inline attachment (e.g. |
void |
addRecipient(java.lang.String emailRecipient)
adds a new recipient;
the given string value will be checked if there is more then one recipient mentioned (semicolon separated)
|
void |
addRecipientBCC(java.lang.String emailRecipientBCC)
adds a new BBC recipient;
the given string value will be checked if there is more then one recipient mentioned (semicolon separated)
|
void |
addRecipientCC(java.lang.String emailRecipientCC)
adds a new CC recipient;
the given string value will be checked if there is more then one recipient mentioned (semicolon separated)
|
java.util.Collection<NuclosFile> |
getAttachments()
returns a collection of all attached
NuclosFile s |
java.lang.String |
getFrom()
returns the name of the sender
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
returns a map with all header information
|
java.util.Collection<NuclosFile> |
getInlineAttachments()
Returns a collection of all attached
NuclosFile s representing inline attachments (e.g. |
java.lang.String |
getMailCharset()
returns the mail charset, e.g.
|
java.lang.String |
getMailType()
returns the mail type, e.g.
|
java.lang.String |
getMessage()
returns the message text of the email
|
java.util.Date |
getReceivedDate()
Gets the date this mail was received by the server.
|
java.util.List<java.lang.String> |
getRecipients()
returns a list of all recipients
|
java.util.List<java.lang.String> |
getRecipientsBCC()
returns a list of all recipientsBCC
|
java.util.List<java.lang.String> |
getRecipientsCC()
returns a list of all recipientsCC
|
java.lang.String |
getReplyTo()
returns the reply address of the email
|
java.util.Date |
getSentDate()
Gets the date this mail was sent.
|
java.lang.String |
getSubject()
returns the subject of the email
|
void |
setContentType(NuclosMailContentType encoding)
Use this method to set the mail type of the current
NuclosMail .For NuclosMailContentType use NuclosMail constant values. |
void |
setFrom(java.lang.String pNameAuthor)
sets the name of the sender
|
void |
setHeader(java.lang.String pProperty,
java.lang.String pValue)
adds an entry to the header object of the email
|
void |
setMessage(java.lang.String pEmailMessage)
sets the message text of the email
|
void |
setReceivedDate(java.util.Date receivedDate)
Sets the date this mail was received by the server.
|
void |
setReplyTo(java.lang.String pEmailReplyTo)
sets the reply address of the email
|
void |
setSentDate(java.util.Date sentDate)
Sets the date this mail was sent.
|
void |
setSubject(java.lang.String pEmailsubject)
sets the subject of the email
|
public static final NuclosMailContentType HTML
public static final NuclosMailContentType PLAIN
public NuclosMail()
public NuclosMail(java.lang.String sRecipient, java.lang.String sSubject)
public void setFrom(java.lang.String pNameAuthor)
pNameAuthor
- public java.lang.String getFrom()
public void setContentType(NuclosMailContentType encoding)
NuclosMail
.NuclosMailContentType
use NuclosMail constant values.encoding
- public void addRecipient(java.lang.String emailRecipient)
emailRecipient
- public java.util.List<java.lang.String> getRecipients()
public void addRecipientCC(java.lang.String emailRecipientCC)
emailRecipientCC
- public java.util.List<java.lang.String> getRecipientsCC()
public void addRecipientBCC(java.lang.String emailRecipientBCC)
emailRecipientBCC
- public java.util.List<java.lang.String> getRecipientsBCC()
public void setSubject(java.lang.String pEmailsubject)
pEmailsubject
- public void setMessage(java.lang.String pEmailMessage)
pEmailMessage
- public void setReplyTo(java.lang.String pEmailReplyTo)
pEmailReplyTo
- public void addAttachment(NuclosFile pFileToAttach)
NuclosFile
to the emailpFileToAttach
- public void addInlineAttachment(NuclosFile pFileToAttach)
NuclosFile
representing an inline attachment (e.g. an embedded image) to the email.pFileToAttach
- public void setHeader(java.lang.String pProperty, java.lang.String pValue)
pProperty
- - keypValue
- - valuepublic java.lang.String getSubject()
public java.lang.String getMessage()
public java.lang.String getReplyTo()
public java.util.Collection<NuclosFile> getAttachments()
NuclosFile
spublic java.util.Collection<NuclosFile> getInlineAttachments()
NuclosFile
s representing inline attachments (e.g. embedded images).public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public java.lang.String getMailType()
public java.lang.String getMailCharset()
public java.util.Date getReceivedDate()
public void setReceivedDate(java.util.Date receivedDate)
public java.util.Date getSentDate()
public void setSentDate(java.util.Date sentDate)
Copyright © 2024. All rights reserved.