Strip whitespace from STMP server names.
Strip whitespace from STMP server names.

The STMP server configuration would fail if there was trailing whitespace on the
server name. This was a problem when copy/pasting text into the form.

Testing done:
Produced the bug with an smtp server "smtp.gmail.com     " and triggered an
email event (registration for new user). Log produced an error: "Unknown host".
Added the changes on the diff and tried again, the email is sent and the value
that is saved is stripped of the redudant spaces.

Reviewed at http://reviews.reviewboard.org/r/3759/
Fixes bug 2620.

davidt/reviewboard,beol/reviewboard,1tush/reviewboard,KnowNo/reviewboard,custode/reviewboard,KnowNo/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,reviewboard/reviewboard,1tush/reviewboard,beol/reviewboard,chipx86/reviewboard,bkochendorfer/reviewboard,brennie/reviewboard,chipx86/reviewboard,sgallagher/reviewboard,chipx86/reviewboard,custode/reviewboard,brennie/reviewboard,sgallagher/reviewboard,KnowNo/reviewboard,custode/reviewboard,davidt/reviewboard,bkochendorfer/reviewboard,beol/reviewboard,brennie/reviewboard,sgallagher/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,1tush/reviewboard,1tush/reviewboard,custode/reviewboard,KnowNo/reviewboard,chipx86/reviewboard,1tush/reviewboard,davidt/reviewboard,brennie/reviewboard,davidt/reviewboard,1tush/reviewboard,sgallagher/reviewboard,1tush/reviewboard,beol/reviewboard