this.smtpHost = smtpHost; try { Properties props = new Properties();  props.put ("mail.smtp.host", smtpHost); props.put ("mail.smtp.allow8bitmime", "true");  session = Session.getDefaultInstance (props, null); transport = session.getTransport ("smtp"); }  catch (MessagingException ex) { throw new EmailException ("Unable to initialize transport to " + "SMTP host \"" + smtpHost + "\"", ex); }
this ("localhost");
    public SMTPEmailTransport (String smtpHost)        throws EmailException    {        this.smtpHost = smtpHost;        try        {            Properties props = new Properties();            props.put ("mail.smtp.host", smtpHost);            props.put ("mail.smtp.allow8bitmime", "true");            session = Session.getDefaultInstance (props, null);            transport = session.getTransport ("smtp");        }        catch (MessagingException ex)        {            throw new EmailException ("Unable to initialize transport to "                                    + "SMTP host \""                                    + smtpHost                                    + "\"",                                      ex);        }    }