*/
public static void sendMail(String host, String from, String to, String cc,
String subject, String body, Vector attachments) throws MessagingException
{
if (from == null || from.length() == 0) {
throw new MessagingException("No 'From' address specified");
}
if (to == null || to.length() == 0) {
throw new MessagingException("No 'To' address specified");
}
Properties properties = System.getProperties();
properties.put("mail.smtp.host", host);
javax.mail.Session session = Session.getDefaultInstance(properties,null);