I have a database "db" with a table "tb" which have image details that I upload to a folder and as well as the name and path of the image to database (table tb).
I have created a script for email in PHP as follows:
$recipients="example@gmail.com";
$subject="some subject";
$headers= "'From: <example@mat.com>'";
$message="<a href='http://http://example.com/image/imagename.jpg' target='_blank'>Click here to see image</a>";
mail($recipients,$subject,$message,$headers);
}
Mail function working good but when the recipients received the mail, the link in body of the mail is shown as:
<a href='http://http://mcqpage.com/image/imagename.jpg' target='_blank'>Click here to see image</a>
I want that the recipients only recieve the "click here to see image" link and after click the target file open.