我有類似的東西。如何將一個換行符添加到使用PHP的rawurlencode編碼的mailto鏈接中
<a href='mailto:[email protected]?subject=<?php print rawurlencode('This is the subject.');?>&body=<?php print rawurlencode('Line 1 of body. Line 2 of body.');?>'>Email</a>
我想在郵件的正文中放一個換行符。我通過谷歌發現,你可以把%0D%0A放入mailto來做一個換行符,但問題是rawurlencode只會對它進行編碼。我可以將什麼放入rawurlencode中,以便讓消息中顯示換行符。
@ cody-grey,這是我,誰試圖指出'\ r \ n'是Windows特定的。再次嘗試,希望這次成功:) – ElmoVanKielmo