changed api for mandrill