I have a big problem! I need to track what the users are doing on my site. As a way to resolve it I crated a sendmail function in order to send me an email every time a user clicks on a button. The code is this:
<div class="buy">
<a onclick="target='_blank'" href="<?php echo $this->product['from'];?>">
<?php
// The message
$message = "A new buy";
$link = $this->product['from'];
// Send
mail('xxx@mail.com', '@buy PRODUCT', $message, $link);
?>
<img src="http://xxx.com/data/images/xxx.jpg" alt="Comprar" />
</a>
</div>
The message I receive is
"A new buy
"
And it should look like:
"A new buy
http://www.xxxx.com"
Anyone can help me with this problem?
mail(‘xxx@mail.com’, ‘@buy PRODUCT’, $message.$link);