【发布时间】:2021-06-08 06:53:16
【问题描述】:
我的 HTML 表单中嵌入了一个深层链接,该深层链接通过 nodeJS 上的 SendGrid API 提交。
虽然用户能够收到邮件,但无法点击。
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="main">
<div>
<h1>Welcome to Example</h1>
<button disabled style="font-size:20px;">Connect</button>
</div>
<div class="content">
<p>A request to reset your password has been made. If you did not make this request, simply ignore this email. If you did make this request, please reset your password below.</p>
</div>
<div>
<form action="exampleapp://resetpassword/" target="_blank">
<input type="submit" value="Reset Password" style="background: #00008B; padding: 10px 50px; border: none; color: #FFF"/>
</form>
</div>
<div>
<h2><a href="https://www.example.com/en" target="_blank">Example Here</a></h2>
</div>
</div>
</body>
<footer>
<div>
<p>Having trouble viewing this email?</p>
<a href="#">Contact our support team.</a>
</div>
</footer>
</html>
我尝试将<form><input /></form> 更改为<a href="exampleapp://resetpassword/">,但无济于事。
请帮忙,谢谢
【问题讨论】:
标签: html node.js email sendgrid deep-linking