Update to new mail sending API