modification to be able to have multiple mailer config