Skip to content

Gmail API Python Client in Cloud Function #220

Description

@lamyaraed

Problem

I'm using Gmail API to send emails with attachments within a cloud function. using gmail api client

gmail_client.users().messages().send(userId='me', body={'raw': raw_string}).execute()

following this Guide: https://developers.google.com/gmail/api/guides/sending#python
I implemented it and it is working fine, but the problem is that the attachments are saved (uploaded) to a cloud storage whenever an email is sent, in the following path

/bucket/emailSubject/attachmentFileName

I don't wish this to happen, I don't want the attachments to be saved in cloud storage, is there a way I can prevent this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions