Added PHPmailer. Some bugfixes