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.

    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题