1


面对我的应用程序上的电子邮件 URL 的问题。我向用户发送用于通过电子邮件共享文件的链接。这些链接是我的应用程序上的登录页面,它对用户进行身份验证。现在电子邮件中的链接在不同的邮件提供商中表现不同。谷歌以正确的方式进行操作,即我的链接出现并在谷歌中运行良好。
雅虎最糟糕的是。它完全href从链接中删除了属性。这是在检查萤火虫控制台中的链接之后。

<a style="color:#333;padding-left:3px;padding-right:10px;text-decoration:none;font-family:'Segoe UI', Tahoma, Verdana, Arial, Sans-Serif;font-size:10pt;" rel="nofollow" id="yui_3_13_0_1_1396955520023_2240">links.txt</a>

它添加了rel=nofollow可能导致问题的原因。但我不知道为什么会发生这种情况,通过网络但发现其他人面临同样的问题,但没有有效的解决方案。
我的链接是这样的http://www.abc.com/authenticate.php?id=YLZr4Sj3MjAxNw==&pid=K4mfnbCyMQ==&auth=Iu8Yi2er 这没有任何可能导致问题的特殊字符。

Live.com :这将https://协议添加到链接而不是http://我建立的链接是 with http,但它在内部添加https了我不想要的。

任何遇到过类似问题的人,我想就这个问题提供一些意见和指导。

干杯!

4

3 回答 3

1

确保您没有丢失http://协议前缀。您的<a>标签应采用以下格式: <a href="http://www.abc.com">abc.com</a>

我用了你的链接。雅虎邮件没有任何问题。

于 2014-04-09T14:13:00.683 回答
0

谢谢你的回答。我在我的代码中使用了以下一组 html:

 # send the email to Applicant
$to = $application['myemail'];
$subject = 'Mentorship Registration Form';
$headers = "From: xxx@domain.com " . "\r\n";
$headers .= "Reply-To: ".  $application['myemail'] . "\r\n";
$headers .= "CC: zzz@domain.co.za, ccc@domain.co.za\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title></title>
            <style></style>
        </head>
        <body>';
$message .= '<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="color:#FFFFFF;background:#b4b4b4;padding:5px 0 0 0;">
        <tr>
于 2014-07-21T10:28:04.633 回答
-1

我有一个类似的问题,然后我只使用stripslashes()了电子邮件正文,它工作得很好

$body= stripslashes($mail_message);
于 2017-11-26T06:49:05.073 回答