public void setReplyTo(String addstr) throws Exception { if (addstr.indexOf("@") < 0) { throw new AddressException();
public void setReplyTo(String addstr) { try { if (addstr.indexOf("@") < 0) { throw new AddressException(); }  Address[] replyTo = new Address[1];  replyTo[0] = new InternetAddress(addstr); message.setReplyTo(replyTo); } catch (Exception mx) { System.err.println("Error in MailObject.setReplyTo(): "+mx); setStatus(REPLYTO);
    public void setReplyTo(String addstr) throws Exception {        if (addstr.indexOf("@") < 0) {            throw new AddressException();        }        Address[] replyTo = new Address[1];        replyTo[0] = new InternetAddress(addstr);        message.setReplyTo(replyTo);    }