using new mailprovider api