On my product detail page I have a small form that allows the visitor to enter their details, submit on a particular item and in turn they get an email and my client does informing him of this information request.
I used the code below to grab the url:
$actual_link = "http://$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]?stock_ID=$sid";
Which works fine. But my problem arises when i try and use it in an email to be sent to both the visitor and the client.
This is the code:
$to = $likeEmail; $subject = "Thank you for your enquiry at Sovereign Antiques"; $body = "Thank you for your interest in the item below: \ \ <a href='$actual_link'>$actual_link</a>\ \ Your interest has been recieved by email and we will call you back very soon.\ \ Again thank you for visiting Sovereign Antiques, and we look forward to speaking with you soon.\ \ Kind Regards\ \ Jason Sallam";
As you can see, $actual_link is in the body text, but its not outputting corectly.
This is what I see in the email:
Which is using the correct details, but it isnt formatting correctly as you will see when I looked at the sourse code for that email.
<a href='<a target="_blank" href="parse.php?redirect=http%3A%2F%2Fwww.accendsandbox.co.uk.%2Fdetail.php%3Fstock_ID%3D5%27%3Ehttp%3A%2F%2Fwww.accendsandbox.co.uk.%2Fdetail.php%3Fstock_ID%3D5%3C%2Fa"><font color='red'>http://www.accendsandbox.co.uk./detail.php?stock_ID=5'>http://www.accendsandbox.co.uk./detail.php?stock_ID=5</a</font></a>><br>
Its just not right.
Can anybody see the problem, as I’m a bit stumped now.