fixed code so that it attached the files again. Its the call to the Close() method that breaks it. Also added a different mime type option.