Mailgun在我的电子邮件中更改了链接(Mailgun changed links in my email)

编程入门 行业动态 更新时间:2024-10-28 13:18:22
Mailgun在我的电子邮件中更改了链接(Mailgun changed links in my email)

我正在使用PHP框架Laravel将带有mailgun的邮件发送到某个列表。 电子邮件得到交付的所有链接被改为email.mg.mydomain / c / ....出于某种原因,在我发送的视图中一切都很好。 发送一些邮件后,有很多从邮件弹出下降和反弹,所以我的域名被禁用 - 这可能是原因吗? 我使用打开和点击跟踪。

这是我的发送代码

$client = new \Http\Adapter\Guzzle6\Client(); $mgClient = new Mailgun('key-notmyrealkey', $client); $result = $mgClient->sendMessage($domain, array( 'from' => 'Sender <news@domain.com>', 'to' => $mail , 'subject' => 'Sender', 'html' => view('some_view'), ));

I'm using the php framework Laravel to send emails with mailgun to a certain list. The emails get delivered all the links got changed to email.mg.mydomain/c/.... for some reason everything is fine in the view i sent. After sending some emails there were alot of drops and bounces from mailgun so my domain got disabled - could this be the reason? I use open and click tracking.

Here is my code for sending

$client = new \Http\Adapter\Guzzle6\Client(); $mgClient = new Mailgun('key-notmyrealkey', $client); $result = $mgClient->sendMessage($domain, array( 'from' => 'Sender <news@domain.com>', 'to' => $mail , 'subject' => 'Sender', 'html' => view('some_view'), ));

最满意答案

这种行为正是点击跟踪所做的 - 它会重写每个外发电子邮件的URL,以便Mailgun可以跟踪独立点击并将其与特定电子邮件相关联。 这就是为什么域中Mailgun设置的域验证和DNS部分涉及设置“电子邮件”。 子域作为指向mailgun.org的CNAME。

This behavior is exactly what click tracking does - it re-writes the URLs for each outgoing email so that Mailgun can track independent clicks and associate them with a specific email. This is why the Domain Verification & DNS part of the Mailgun setup on your domain involved setting up the "email." sub-domain as a CNAME pointing to mailgun.org.

更多推荐

本文发布于:2023-07-26 05:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1271324.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:改了   电子邮件   链接   Mailgun   links

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!