2016-06-01 61 views
0

我使用以下句柄模板,並出於某種原因不斷髮送更改電子郵件鏈接爲純文本而不是可點擊的網址。如何通過電子郵件驗證作爲鏈接與純文本

如果有人能指引我正確的方向,這將是巨大的。

Hello {{name}}, 
 
<br/><br/> 
 
You have requested a new password! 
 
<br/><br/> 
 
To create a new password, please click the following link: 
 
<a href="{{changelink}}" title="Change password">{{changelink}}</a> 
 
<br/><br/> 
 
If you did not request this change, feel free to ignore this email. 
 
<br/><br/> 
 
Thank you for using our services!

回答

0

確保電子郵件有一個Content-type: text/html頭。

+0

感謝保羅,所以代替該: \t \t你好{{名稱} }, \t \t

\t \t您已申請新的密碼! \t \t

\t \t要創建新密碼,請點擊以下鏈接: \t \t {{changelink}} \t \t

\t \t如果您沒有要求這種變化,不必理會這封電子郵件。 \t \t

\t \t感謝您使用我們的服務! – nobles

+0

不,不是HTML中的元標記,而是消息標題。 –

相關問題