Add option to set a mail config

Add an optional `smtpconfig` attribute to `mail.sendmail` to handle sending mails with different smtp accounts.