If u know this mail me soon . Whats the syntax to send a pdf as an email using servlet ? .Is the following correct or not .Mail mail = new Mail(lsa_smtp);//lsa_smtp ==> Server IPbuf = bout.toByteArray();mail.setAttachment(buf);mail.sendMsg();