下面是我的PHP代码,我试图在正文中添加电子邮件变量并发送电子邮件,但每当我尝试运行该文件我不能?为什么?如果我删除电子邮件的变量文件正常运行?我怎么解决呢?
$body='<img src="images\logo.jpg" alt="logo"/><br/>Howdy, <br/> <br/> We need to make sure you are human,Please verify your email,To confirm your order with us!.<br/><b>Happy Shopping! </b> <br/> <br/> <a href="'.$base_url.'activation/'.$activation.'">'.$base_url.'activation/'.$activation.'</a><br/><br/>Best Regards,<br/>Zenolaps.com<br/>This Email Was Sent To"' echo $email'"';
答案 0 :(得分:0)
将echo $email
更改为'.$email;
Turn on error reporting因为它会告诉你什么是错的。 始终已启用错误报告,以显示开发过程中的所有错误。
答案 1 :(得分:0)
添加了连接This Email Was Sent To '.$email;
$body='<img src="images\logo.jpg" alt="logo"/><br/>Howdy, <br/> <br/> We need to make sure you are human,Please verify your email,To confirm your order with us!.<br/><b>Happy Shopping! </b> <br/> <br/> <a href="'.$base_url.'activation/'.$activation.'">'.$base_url.'activation/'.$activation.'</a><br/><br/>Best Regards,<br/>Zenolaps.com<br/>This Email Was Sent To '.$email;