Is there a way to allow the CLI to draft emails but not sending them? #287
Answered
by
drassi
tabletenniser
asked this question in
Q&A
-
|
Hello, Thanks for the great GWS CLI tool! Is there a way to allow the CLI to draft emails but not sending them? As far as I can tell, the Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
drassi
Mar 8, 2026
Replies: 1 comment
-
|
Try this: MSG="To: someone@example.com
Subject: Hello World
Content-Type: text/plain
This is a test draft."
gws gmail users drafts create \
--params '{"userId":"me"}' \
--json '{"message":{"raw":"'"$(printf "$MSG" | base64)"'"}}' |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jpoehnelt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this: