fixed the mime settings to make public key attachment work correctly
updated the templates to include more details in the warnings