Edit or forward an existing mail into Gmail Compose Window

自闭症网瘾萝莉.ら 提交于 2019-12-06 08:20:26

Finally, I've found a way to open a mail directly into the "Compose" Window, ready to be edited and sent. It's so simple that I can not believe it takes me 2 days to figure it out:

Just use the url:

https://mail.google.com/mail/u/[accountNumber]/?zx=#[tag]?compose=[MailID]

  • accountNumber is useful if you have two or more accounts at the same time
  • tag its the mail list that you want to see behind the compose window (ussually inbox).
  • MailId ... well, the Gmail Message ID.

For instance, https://mail.google.com/mail/u/0/?zx=#inbox?compose=14bbb0dae14fec1f will open the inbox of your first account with a Compose Window opened and pre-populated with the e-mail data.

There is already a feature called "canned Response" in current gmail compose window which is probably solving the same problem that you are trying to solve with your extension. well I am not sure URL has html support or not but I think it should not support it to protect user from cross-site scripting attacks. you can also consider Gmail rest API if you want to compose gmail message with your own custom template but using this you may have to do lots of things from scratch.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!