relogin before sending a mail