Message Boards Message Boards

Back

RE: Hyperlink to launch GMail?

Toggle
Hyperlink to launch GMail?
Answer
1/21/22 3:37 PM
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 Votes)

RE: Hyperlink to launch GMail?
Answer
1/21/22 4:59 PM as a reply to 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 Votes)

RE: Hyperlink to launch GMail?
Answer
1/21/22 6:19 PM as a reply to Navdeep Dhillon.
Thanks, Nav!  That works perfectly! 
Scott
0 (0 Votes)