Some little bugfixes and file attachment for phpmailer plugin.