org.apache.commons.net.smtp
public final class RelayPath extends Object
| Constructor Summary | |
|---|---|
| RelayPath(String emailAddress)
Create a relay path with the specified email address as the ultimate
destination.
| |
| Method Summary | |
|---|---|
| void | addRelay(String hostname)
Add a mail relay host to the relay path. |
Parameters: emailAddress The destination email address.
< @bar.com,@foo.com:foobar@foo.com >
path = new RelayPath("foobar@foo.com");
path.addRelay("bar.com");
path.addRelay("foo.com");
Parameters: hostname The host to add to the relay path.