2015-07-05 60 views
-1

我目前正在研究mailchimp以生成電子郵件轉發按鈕。當你按下這個按鈕時,出現一些文字,然後發送給其他人。我已經使用了下面的代碼。我想爲「www.dailypnut.com」地址提供一個超鏈接,因爲它現在只顯示在電子郵件中。我該怎麼做呢?向'Mailto'正文添加超鏈接

<p style="background-color:#3b5998; width:200px; height:40px; 
opacity:0.8;margin:auto;margin-top:15px; margin-bottom;px; 
text-align:center;line-height:40px"><a href="mailto:?Subject=The Daily 
Pnut:The World in a Nutshell&amp;Body=%20Sign%20up%20for%20the%20 
Daily%20Pnut.%20A%20humorous%20daily%20summary%20of%20world%20affairs 
%20-%20www.dailypnut.com" style="text-decoration:none"><b style= 
"color:white;text-decoration:none; opacity:0.9;text-transform: uppercase; 
font-size:14px">Forward the Pnut!</b></a></p> 

回答

1

此行爲取決於電子郵件客戶端,因此您不會在您的html中獲得此解決方案。

不幸的是,您只能在mailto中指定一個普通主體(請參閱MailTo with HTML body)。由於今天很多電子郵件客戶端只允許編輯html主體,因此在加載時將普通主體「轉換」爲html,他們很可能會在轉換過程中用鏈接替換URL。

結果是,根據用戶的電子郵件客戶端,您的mailto鏈接的行爲將有所不同。

相關問題