Sharing settings for files inserted from Google Drive
When you send a file to somebody by inserting files using Drive (instructions for desktop users), Gmail checks to see if your recipients have access to the file and will prompt you to adjust the sharing settings on those files if they don’t.
When sending your message, if Gmail detects that your recipients don’t have access to your files, you’ll be given options to change your sharing settings. Here’s how it works: