2014-09-23 49 views
1

我有一個輸入表單數據的腳本,然後生成電子郵件給完成表單的用戶。電子郵件轉到電子郵件收件人一切正常,但圖像不顯示(我在郵件中收到一個斷開的鏈接圖標)。嵌入圖片發行條斜槓

我查看了電子郵件到達時的源代碼,它出現在雙引號之前的反斜槓處。我如何得到這個工作?

電子郵件源代碼:

<img src=\"https://amb.cbussuper.com.au/registration-test/images/sig.png\」 /><br><br> 

PHP代碼:

$message = "<html><body>"; 
    $message .= "<b>Thank you for registering for the meeting</b><br>"; 
    $message .= "- Day: 28 October 2014<br>"; 
    $message .= "- Time: 7pm<br><br>"; 
    $message .= "If you have any questions about the meeting please email [email protected]<br><br>"; 
    $message .= "Please do not reply - this is an automatically generated email.<br><br>"; 
    $message = stripcslashes($message); 
    $message .= '<img src="https://website.com.au/registration/images/sig.png" /><br><br>'; 
    $message .= "</body></html>"; 
+1

我們展示更多的代碼。我們需要向PHP Mailer顯示你的電話。 – 2014-09-23 07:26:38

+0

爲什麼''''和'''不同?這僅僅是複製/粘貼時的一個格式化問題,還是它的實際情況?在電子郵件實際發送之前,使用消息中的stipslashes來加倍-make sure:https://eval.in/197214 – 2014-09-23 07:38:58

回答

0

這很簡單: https://website.com.au/registration/images/sig.png 未找到

請求的URL /registration/images/sig.png在這個服務器上沒找到。 Apache服務器在website.com.au端口443

請上傳您要引用爲圖像文件...

+0

這可能是真的,但它與問題無關 – Synchro 2014-09-23 08:27:11

+0

由於鏈接被破壞,你會得到斷開的鏈接 請上傳它,並檢查是否有幫助或者不!(我覺得它有幫助,我試過鏈接上的一個連接,這是ERROR404!) 其他鏈接(https://amb.cbussuper.com.au/registration-test/images/sig.png )受密碼保護,因此如果您嘗試使用它,它也會給出「破碎的圖像」,因爲郵件程序無法訪問文件... – 2014-09-23 11:00:32