Refs #17998 Forum; cleanup code; don't fail sending email when deployed with repoze.sendmail

git-svn-id: https://svn.eionet.europa.eu/repositories/Naaya/trunk/eggs@20661 a0171fae-0946-0410-966d-b1775066cd26