- public synchronized void sendmail(String to, String subject,
- String message, String from, String replyto, String toname,
- String fromname, String errorsto, boolean extra) throws IOException {
- boolean sent = false;
- while (!sent) {
- if (client == null || client.isClosed()) {
- client = servs.accept();
- out = new DataOutputStream(client.getOutputStream());
- in = new DataInputStream(client.getInputStream());
- }
+ public synchronized void sendmail(String to, String subject, String message, String from, String replyto,
+ String toname, String fromname, String errorsto, boolean extra) throws IOException {
+ while (true) {
+ assureLocalConnection();