留言板 留言板

返回

Hyperlink to launch GMail?

触发器
Hyperlink to launch GMail?
答复
22-1-21 下午3: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 票)

RE: Hyperlink to launch GMail?
答复
22-1-21 下午4:59 回复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 票)

RE: Hyperlink to launch GMail?
答复
22-1-21 下午6:19 回复Navdeep Dhillon。
Thanks, Nav!  That works perfectly! 
Scott
0 (0 票)