Fórum Fórum

Vissza

Hyperlink to launch GMail?

Váltás
Hyperlink to launch GMail?
Válasz
2022.01.21. 15:37
Hello!  
We've been wanting to incorporate a 'Report an Issue' button in our courses for a while.  I have read up on how to launch an email with prepopulated fields, but we use GMail.  Is there any work around or option for that? 
Thanks! 
0 (0 Szavazatok)

RE: Hyperlink to launch GMail?
Válasz
2022.01.21. 16:59 válaszként erre: Scott Sheridan.
Hi Scott,
An interesting question. If you're using mailto, then it depends on your what your user's email client is. You can't override that.

I found this post that uses a hyperlink instead of mailto: https://stackoverflow.com/questions/6548570/url-to-compose-a-message-in-gmail-with-full-gmail-interface-and-specified-to-b

Seems to work pretty well for me (see image below) - https://lrs.smartbuilder.com/l/i030kyon8kd2

Note that if you're trying to populate the body or the subject with special characters (like a "?") or pull in dynamic text, you'll have to start encoding the characters to make them websafe. For example, ? would be %3F.

- Nav

Mellékletek:

Melléklet

0 (0 Szavazatok)

RE: Hyperlink to launch GMail?
Válasz
2022.01.21. 18:19 válaszként erre: Navdeep Dhillon.
Thanks, Nav!  That works perfectly! 
Scott
0 (0 Szavazatok)