How to send an email through Gmail with attachment

I’m using a button with “Gmail
& ENCODE_URL_COMPONENT({Email}) & “&su=” & ENCODE_URL_COMPONENT({Subject}) & “&body=” & ENCODE_URL_COMPONENT({Body}) to send an email through Gmail it it works great, but how do I attach a file from an attachment field on the record?

I really like the control of a button. I’d rather not use an automation.

Thanks in advance!

Welcome back to the community, @Steve_Ruqus! :smiley: Unfortunately this isn’t possible. The mailto protocol isn’t designed to pass files as URL properties. Only the message body and header fields are supported.

There might be a way to do it using a script—which would still give you the button-level control that you want—but I haven’t delved into accessing Google’s API at that level, so I couldn’t offer more specific guidance.

Another option would be to insert a link to the file into the message body using the URL of the attachment, which can be extracted from the attachment field using a formula.


Thanks Justin. That is an interesting idea.

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.