Respect mailer configuration option.

if hander type is swift_mailer mailer was being set to the default 'mailer'. Check if mailer is set in hander and override the default.