相关疑难解决方法(0)

GMAIL中具有非HTTP架构的超链接

因此,我正在制作移动应用,并希望使用相同的URL进行在iOS和Android中激活内容的链接.我知道怎么做了.我对android的意图是这样的:

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="activity.action android:scheme="myapp"/>
            </intent-filter>
Run Code Online (Sandbox Code Playgroud)

我的问题是当我去测试这个并且想在电子邮件myapp中做一个超链接://activity.action在android上的gmail中不被识别为url并显示为纯文本.有没有办法来解决这个问题?如何将gmail识别的非标准架构作为链接?

gmail android hyperlink

12
推荐指数
1
解决办法
8199
查看次数

如何阻止Gmail从网址中删除值?

我最近了解到,网络邮箱,如Gmail会做改变HTML电子邮件,例如添加target="_blank"<a>标签.

我还发现其他改动也会发生.当我从PHP脚本向Gmail(可能还有其他Web邮件客户端)发送HTML电子邮件时,任何链接的URL中包含的变量值都将被删除.因此,例如,这是我在PHP代码中设置的值:

$mailContent = '<p><a target="_blank" href="https://example.com/confirmation.html?verification=x1x1x1x1x1x1x1x&email=yyyy@email.com">click here to go to the web site and activate your account!</a></p>';
Run Code Online (Sandbox Code Playgroud)

但是,当在Gmail中收到电子邮件时,HTML代码如下所示:

<p><a target="_blank" href="https://example.com/confirmation.html?verification=&email=">click here to go to the web site and activate your account!</a></p>
Run Code Online (Sandbox Code Playgroud)

x1x1x1x1x1x1x1xyyyy@email.com已经从内部剥离出来<a>的标签.

如何保护我要传递给URL的变量值,以便Gmail不会删除它们?

html email gmail

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

gmail ×2

android ×1

email ×1

html ×1

hyperlink ×1