public class EmailService extends Object
Modifier and Type | Field and Description |
---|---|
private Credentials |
credentials |
private Transport |
transport |
private URL |
url |
Constructor and Description |
---|
EmailService(URL url,
Credentials credentials,
Transport transport)
Constructs the service.
|
private URL url
private Credentials credentials
private Transport transport
public EmailService(URL url, Credentials credentials, Transport transport)
url
- of the servercredentials
- to work with the servertransport
- to know the method to reach the serverpublic void send(EmailInfo emailInfo)
emailInfo
- information about messageCopyright © 2016. All rights reserved.