public class Email
extends java.lang.Object
| Constructor and Description |
|---|
Email(java.lang.String subject,
java.lang.String content,
java.lang.String sender,
java.lang.String recipient)
Construct an OTP email with the specified subject, date, content, sender,
and recipient.
|
Email(java.lang.String subject,
java.lang.String content,
java.lang.String sender,
java.lang.String recipient,
java.lang.String contentType)
Construct an OTP email with the specified subject, date, content, sender,
and recipient.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Get the content.
|
java.lang.String |
getContentType()
Get the content type
|
java.lang.String |
getRecipient()
Get the recipient.
|
java.lang.String |
getSender()
Get the sender.
|
java.lang.String |
getSubject()
Get the subject.
|
public Email(java.lang.String subject,
java.lang.String content,
java.lang.String sender,
java.lang.String recipient)
subject - The subject.date - The date.content - The content.sender - The sender.recipient - The recipient.public Email(java.lang.String subject,
java.lang.String content,
java.lang.String sender,
java.lang.String recipient,
java.lang.String contentType)
subject - The subject.date - The date.content - The content.sender - The sender.recipient - The recipient.contentType - The content typepublic java.lang.String getSubject()
public java.lang.String getContent()
public java.lang.String getSender()
public java.lang.String getRecipient()
public java.lang.String getContentType()