简体   繁体   English

添加图像到 PHP email 模板

[英]Add image to PHP email template

If I add the following line into the template the checkout becomes unavailable.如果我将以下行添加到模板中,结帐将变得不可用。

"\n<img src="https://example.com/images/girocode.png" alt="GiroCode" />" . 

How can I make the work in PHP?我怎样才能在 PHP 中完成工作?

you should use \ before "你应该在"之前使用\

"\n<img src=\"https://example.com/images/girocode.png\" alt=\"GiroCode\" />"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM