dqpd4268 2015-05-13 11:56
浏览 41

PHP Mailgun在href中的错误链接

I'm sending an activation email to newly registered users on my page. The mail arrives like it should and everything but I have on problem.

The variable that is passed to the email template is used 2 times.

First time on the button that activates you account:

   <a style="padding: 10px 20px; background-color: #A3D900; color: #ffffff;" href="<?php echo $activate_url; ?>"><b><?php echo __('Activate') ?></b></a>

And the second time under the button in normal text:

<p style="color:#333;">
    <?php echo $activate_url; ?>
</p>

The link is properly added only the second time. The first on (the button href) links to the email itself (email.mydomain.com/....).

Why is this happening? How can I fix it?

  • 写回答

2条回答 默认 最新

  • dongluanan7163 2015-07-08 11:21
    关注

    There was a problem with mailgun. Mailgun was rewriting "hrefs" in my emails. I disabled the link-tracking and now it works fine. I don't really need link tracking, since I'm tracking the activation page already.

    评论

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮