props.remove("mail.smtp.user");
props.remove("mail.smtp.password");
props.remove("password");
}
SessionAndTransport sat = SMTPConnectionPool.getSessionAndTransport(props,hash(props),auth);
// Contacts
SMTPMessage msg = new SMTPMessage(sat.session);
if(from==null)throw new MessagingException("you have do define the from for the mail");
//if(tos==null)throw new MessagingException("you have do define the to for the mail");