code: public static void main(final String[] args) throws EmailException, IOException {
  		final MailInfo info = new MailInfo();
  		final Attachment attachment = new Attachment();
  		attachment.setData(new FileInputStream("c:/app1-base-jo.sql"));
  		attachment.setMimeType("text/html");
  		attachment.setDescription("Test Attachment");
  		attachment.setName("app1-base-jo.sql");
  		info.setHost("mail.hotpop.com");
  		info.setTo("jamilshreet@yahoo.com");
  		info.setFrom("jamil.shreet@gmail.com");
  		info.setSubject("Test for Commons");
  		info.setMsg("Hi Jamil how are you this is a test for attachment file");
  		info.addAttachment(attachment);
  		MailSender sender=new MailSender();
  		sender.send(info);
  		System.out.println("Done");
  
  	}
docs: The main method.
  
  @param args the arguments
  @throws EmailException the email exception
  @throws IOException    Signals that an I/O exception has occurred.