public MailMessage(String host) throws IOException { this.host = host; to = new Vector(); cc = new Vector(); headers = new Hashtable(); setHeader("X-Mailer", "org.apache.tools.mail.MailMessage (jakarta.apache.org)"); connect(); sendHelo();
public MailMessage() throws IOException { this("localhost");
  public MailMessage(String host) throws IOException {    this.host = host;    to = new Vector();    cc = new Vector();    headers = new Hashtable();    setHeader("X-Mailer", "org.apache.tools.mail.MailMessage (jakarta.apache.org)");    connect();    sendHelo();  }