Email Button to open default mail client

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I am trying to code a button to send to a static email address by opening the users default mail client on click. I tried using Javascript as an inline snippet but that didn't work. The button is coded now to open a sales force email but that will not suit my purposes. I need the button to act just as an email link field. I am sure this is easy but I am spinning my wheels right now. Thanks!
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Tami,

Perhaps a template instead of a button, with html enabled? Then you could just use a standard html mailto: link.
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb
Hi Jim,

Thanks for the suggestion. I had tried that but didn't want to show a random email field. This is being used on a community portal. Perhaps I should revisit this idea and see if there is a way to conditionally hide the field.
Photo of Andrew Ottaru

Andrew Ottaru

  • 412 Points 250 badge 2x thumb
Hi Tami, You may want to create a custom email button under Custom Button and Link in the Salesforce object you are working on to open users default mail client on click then add a button in the Skuid page with Action Type : Custom SFButton/Link and select the button you created in Salesforce. Please let me know if this makes sense. Thanks