Session session = Session.getDefaultInstance(this.props,
new javax.mail.Authenticator()
{
protected PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication(MAIL_USER, MAIL_PWD);
}
});
MimeMessage msg = new MimeMessage(session);
msg.setSubject(rb.getString("regConfirmSubject"));
msg.setText(rb.getString("regConfirmMsg") + rb.getString("regConfirmGreetings"));