Prefilling gmail compose screen with HTML text(使用 HTML 文本预填充 gmail 撰写屏幕)
问题描述
我发现要打开 Gmail 撰写屏幕,您必须先登录并打开以下链接:
I found out that in order to open a Gmail compose screen you'd have to be logged in and open the following link:
https://mail.google.com/a/domain/?view=cm&fs=1&tf=1&source=mailto&to=WHOEVER%40COMPANY.COM&su=SUBJECTHERE&cc=WHOEVER%40COMPANY.COM&bcc=WHOEVER%40COMPANY.COM&body=PREPOPULATEDBODY
替换变量会填充撰写表单上的相应位置.但是,如果我想输入正文多行文本或换行符,即使我对其进行 urlencode,它也不起作用.这里有什么想法吗?
Replacing the variables fills in the corresponding places on the compose form. However if I want to enter into the body multiline text or line breaks its just not working even if I urlencode it. Any ideas here?
推荐答案
检查您的 UrlEncode 方法是否真的将换行符转换为%0a".这是一个两行电子邮件正文的示例:
Check that your UrlEncode method really translates newlines into "%0a". Here's an example of a 2-line email body:
https://mail.google.com/mail/?view=cm&ui=2&tf=0&fs=1&to=WHOEVER%40COMPANY.COM&su=SUBJECTHERE&body=LINE1%0aLINE2
这篇关于使用 HTML 文本预填充 gmail 撰写屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 HTML 文本预填充 gmail 撰写屏幕


- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 如何显示带有换行符的文本标签? 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01