Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

How to send an email through Gmail with attachment

Topic Labels: Formulas
Solved
Jump to Solution
596 2
cancel
Showing results for 
Search instead for 
Did you mean: 

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!

1 Solution

Accepted Solutions
Steve_Ruqus
5 - Automation Enthusiast
5 - Automation Enthusiast

Thanks Justin. That is an interesting idea.

See Solution in Thread

2 Replies 2

Welcome back to the community, @Steve_Ruqus! :grinning_face_with_big_eyes: 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.

Steve_Ruqus
5 - Automation Enthusiast
5 - Automation Enthusiast

Thanks Justin. That is an interesting idea.