问题描述
我正在使用php框架Laravel将带有mailgun的电子邮件发送到特定列表.电子邮件已交付,由于某些原因,所有链接都已更改为email.mg.mydomain/c/....在我发送的视图中,一切都很好.发送一些电子邮件后,mailgun掉落了很多东西,因此我的域名被禁用了-这可能是原因吗?我使用打开并单击跟踪.
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.
这是我发送的代码
$client = new \Http\Adapter\Guzzle6\Client();
$mgClient = new Mailgun('key-notmyrealkey', $client);
$result = $mgClient->sendMessage($domain, array(
'from' => 'Sender <[email protected]>',
'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.
这篇关于Mailgun更改了我电子邮件中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!