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@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>";  
4

1 回答 1

0

这很简单: https ://website.com.au/registration/images/sig.png 未找到

在此服务器上未找到请求的 URL /registration/images/sig.png。website.com.au 上的 Apache 服务器端口 443

请上传您想作为图片引用的文件...

于 2014-09-23T07:44:34.670 回答