public class Mail extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVER
Server address (transmitter).
|
| Constructor and Description |
|---|
Mail(String to,
String title,
String message)
Creates a new instance of Mail with server address as transmitter.
|
Mail(String from,
String to,
String subject,
String message)
Creates a new instance of Mail.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getMessage()
Gets the body of the mail.
|
String |
getReceiver()
Gets the receiver address.
|
String |
getSubject()
Gets the subject of the mail.
|
String |
getTransmitter()
Gets the transmitter address.
|
int |
hashCode() |
String |
toString() |
public static final String SERVER
public Mail(String from, String to, String subject, String message)
from - the transmitter address.to - the receiver address.subject - the subject.message - the body of messagepublic String getTransmitter()
public String getReceiver()
public String getSubject()
public String getMessage()
Copyright © 2016. All rights reserved.