删除href属性的Yahoo邮件中的电子邮件链接和添加https的live.com

时间:2014-04-08 11:42:22

标签: php email hyperlink windows-live yahoo-mail


面对我的应用程序上的电子邮件URL的问题。我向用户发送通过电子邮件共享文件的链接。链接是我的应用程序上的登录页面,用于验证用户。现在,电子邮件中的链接在不同的邮件中表现不同提供商 .Google以正确的方式做到这一点,即我的链接出现并在谷歌中正常工作 雅虎是最糟糕的。它完全剥离了链接中的href属性。这是在检查firebug控制台中的链接之后。

<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://我构建的链接与http相关联,但它在内部添加了https我不想要。

任何遇到过类似问题的人,我都希望得到一些意见和指导。

干杯!

2 个答案:

答案 0 :(得分:1)

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

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

答案 1 :(得分: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>
相关问题