我有一个输入表单数据的脚本,然后生成一封电子邮件给完成表单的用户。电子邮件收到电子邮件收件人一切正常,但图片没有显示。(我在邮件中收到一个损坏的链接图标)。
我查看了电子邮件到达时的源代码,它出现在双引号之前的反斜杠。我如何让它工作?
电子邮件源代码:
<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@address.com.au<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>";
答案 0 :(得分:0)
这很简单: https://website.com.au/registration/images/sig.png 找不到
在此服务器上找不到请求的URL /registration/images/sig.png。 位于website.com.au端口443的Apache服务器
请上传您想要作为图片引用的文件......