Adjust email sharing to current API