Fixed #22734 -- Moved SMTP-related settings to a dictionary

Thanks Julian Wachholz for the report and the initial patch.
add a comment to remove these in Django 2.0?