用HTML文本预填gmail撰写屏幕 [英] Prefilling gmail compose screen with HTML text

查看:147
本文介绍了用HTML文本预填gmail撰写屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我发现为了打开GMAIL撰写屏幕,您必须先登录并打开以下链接: 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 = PREPPULATEDBODY

替换变量会填充撰写表单上的相应位置。但是,如果我想进入身体多行文本或换行符,即使我urlencode它只是不工作。这里的任何想法?

解决方案

检查您的UrlEncode方法是否真的将换行符转换为%0a。以下是一个双线电子邮件正文的示例:



https://mail.google.com/mail/?view=cm& ; ui = 2& tf = 0& fs = 1& to = WHOEVER%40COMPANY.COM& su = SUBJECTHERE& body = LINE1%0aLINE2

Hi guys 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

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?

解决方案

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撰写屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆