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.
|
public RelayPath(String emailAddress)
emailAddress
- The destination email address.public void addRelay(String hostname)
< @bar.com,@foo.com:foobar@foo.com >
path = new RelayPath("foobar@foo.com"); path.addRelay("bar.com"); path.addRelay("foo.com");
hostname
- The host to add to the relay path.Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.