SendGrid锚点标记在Outlook中无法正常工作

问题描述:

我使用了Sendgrid api作为电子邮件模板,并且在其中一个电子邮件中有一些确认功能,为此我使用了一个将重定向到后端服务器的锚标记,然后后端API做了所有事情。它工作正常,但一些outlook客户抱怨他们没有重定向到正确的地址。SendGrid锚点<a>标记在Outlook中无法正常工作

我得到了来自客户(前景),这是下面的东西的链接:

https://owa.nexus.ox.ac.uk/owa/redir.aspx?SURL=u16WQnU .......

但上面的链接是错误的,在sendgrid链接应该像下面:

https://u3550765.ct.sendgrid.net/wf/click?upn=hj8lklPLwDMw .......

谁能帮助我,并建议我要么是sendgrid问题在Outlook或它的东西与Outlook设置?

以下是电子邮件模板:

<div style="width: 500px;margin: auto;margin-top: 37px;"> 
    <div class="rest-btn" style="display: inline-block;margin: 10px;width: 200px;color: #fff;height: 40px;border: none;border-radius: 5px;line-height: 2.9;text-align: center;border: 1px solid #ccc;padding: 0px;background-color: #4dbc39;"> 
     <a href="{{ baseURL }}” style="color: white !important;text-decoration:none">ACCEPT</a> 
    </div> 
    <div class="rest-btn" style="display: inline-block;margin: 10px;width: 200px;height: 40px;border: none;border-radius: 5px;color:#ffffff;line-height: 2.9;text-align: center;padding: 0px;border: 1px solid #ccc;padding: 0px;background-color: #4dbc39;"> 
     <a href="{{ baseURL }}" style="color:white;text-decoration:none">DECLINE</a> 
    </div> 
    </div> 

我怀疑的问题是,你使用的是Outlook特定HTML(VML)生成按钮。 SendGrid不包装这些链接,这就是为什么这不起作用。

如果您可以发布您发送的HTML样本,这将有所帮助。然后我们可以确认这是否是问题。

+0

我用电子邮件模板更新了我的问题,我正在使用,请检查它。 –

+0

谢谢,但我确定这不是整个模板。您是否能够通过此代码段重现问题?我正在寻找的部分应该在'' –