Skip to content

Instantly share code, notes, and snippets.

@PharaohKJ
Last active May 4, 2020 02:00
Show Gist options
  • Save PharaohKJ/a2c07a3f44c35c4fde1ebea868bfc250 to your computer and use it in GitHub Desktop.
Save PharaohKJ/a2c07a3f44c35c4fde1ebea868bfc250 to your computer and use it in GitHub Desktop.
Open GMail on MacOS with Ruby
uid = 0
params = URI.encode_www_form(
[
['view', 'cm'],
['su', subject],
['to', to],
['body', doc],
['cc', cc],
['bcc', bcc]
]
)
`open 'https://mail.google.com/mail/u/#{uid}/?#{params}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment