PHP电子邮件变量不显示,收到错误

时间:2013-12-10 15:54:54

标签: php

下面是我的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'"';

2 个答案:

答案 0 :(得分:0)

  1. echo $email更改为'.$email;

  2. 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;