Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Email link that navigates to Gmail, regardless of default mail app

My users want an email link in a UI, that when clicked opens Gmail.com in their browser, and if signed in to Gmail already, opens a draft email window with the email address from the link.

Currently I am using safelink, and it opens the default mail application on the user's computer.  However, they want it to always go to gmail.com regardless of the default mail app.

Is this possible?

Here is an example of the code I am using

a!safeLink(
label: "example@example.com",
uri: "mailto:example@example.com"
)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    You could have a safeLink open "gmail.com" instead -- but any more than that would strictly depend upon whether it's even possible to call the "gmail.com" url with some sort of additional parameter to determine behavior (such as automatically starting a new message etc), which seems possible but doubtful, and would be completely up to Gmail's behavior (in other words, nothing to do with Appian in particular).  Note: I googled it and was able to find this, which might give you a good start into determining whether this is feasible.

    Edit: the example provided in the post linked above didn't work as-written - I had to remove the "/a/seagate.com" part, otherwise it was thinking I was trying to invoke seagate.com's internal gmail account (which of course I don't have), however after playing with it, the following link format DOES seem to work per what you're attempting (note that it probably won't work at all if someone isn't logged into Gmail on whatever browser they click this link from):

    https://mail.google.com/mail/u/0/?view=cm&fs=1&to=john.doe@test.com

Reply
  • 0
    Certified Lead Developer

    You could have a safeLink open "gmail.com" instead -- but any more than that would strictly depend upon whether it's even possible to call the "gmail.com" url with some sort of additional parameter to determine behavior (such as automatically starting a new message etc), which seems possible but doubtful, and would be completely up to Gmail's behavior (in other words, nothing to do with Appian in particular).  Note: I googled it and was able to find this, which might give you a good start into determining whether this is feasible.

    Edit: the example provided in the post linked above didn't work as-written - I had to remove the "/a/seagate.com" part, otherwise it was thinking I was trying to invoke seagate.com's internal gmail account (which of course I don't have), however after playing with it, the following link format DOES seem to work per what you're attempting (note that it probably won't work at all if someone isn't logged into Gmail on whatever browser they click this link from):

    https://mail.google.com/mail/u/0/?view=cm&fs=1&to=john.doe@test.com

Children
No Data