Fórum Fórum

Voltar

RE: Hyperlink to launch GMail?

Alternar
Hyperlink to launch GMail?
Resposta
21/01/22 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 Votos)

RE: Hyperlink to launch GMail?
Resposta
21/01/22 16:59 em resposta a 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
0 (0 Votos)

RE: Hyperlink to launch GMail?
Resposta
21/01/22 18:19 em resposta a Navdeep Dhillon.
Thanks, Nav!  That works perfectly! 
Scott
0 (0 Votos)