code: public void addAttachment(final File file) throws MessagingException
  	{
  		DataSource dataSource;
  		dataSource = new FileDataSource(file);
  		final DataHandler dataHandler = new DataHandler(dataSource);
  		addAttachment(dataHandler, file.getName());
  	}
docs: Adds an attachment to the EmailMessage.
  
  @param file
  The file to add to the EmailMessage.
  
  @throws MessagingException
  is thrown if the underlying implementation does not support modification of
  existing values