Fix an undefined index stroing prefs as non superadmin

Coding standards
PHPMailer's SMPT class was not found, fixes #856
Cleanup, coding standards
Fix check modules images path