move swiftMailer registration into closure

Signed-off-by: Suhayb El Wardany <me@suw.me>
Merge pull request #4029 from suwardany/mail-config-overrides

Email config overriding issue with artisan.