Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gmail API Python Client in Cloud Function #220

Open
lamyaraed opened this issue Nov 25, 2021 · 0 comments
Open

Gmail API Python Client in Cloud Function #220

lamyaraed opened this issue Nov 25, 2021 · 0 comments

Comments

@lamyaraed
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant