Simple application which contains method using javaMail API