public final class RelayPath extends Object
SMTPClient
Constructor and Description |
---|
RelayPath(String emailAddress)
Create a relay path with the specified email address as the ultimate
destination.
|
Modifier and Type | Method and Description |
---|---|
void |
addRelay(String hostname)
Add a mail relay host to the relay path.
|
String |
toString()
Return the properly formatted string representation of the relay path.
|
public RelayPath(String emailAddress)
emailAddress
- The destination email address.public void addRelay(String hostname)
< @bar.com,@foo.com:[email protected] >
path = new RelayPath("[email protected]"); path.addRelay("bar.com"); path.addRelay("foo.com");
hostname
- The host to add to the relay path.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.