Set up a Google API with email sending permissions. Include a valid redirect URI (e.g., http://localhost:5000/) and place the credentials.json file in the root directory.