In my android app, the user enters his email account and gets in return an email with text in the body. So far so good. However I want to have a link in body of the email,but I don't know how to do it. Here is my code. It is quite simple.
<?php
require "init.php";
$email = $_POST['email'];
$subject = "My subject";
$txt = "Please visit '<a href='http://www.gazzetta.gr'>Click Here</a>' ";
if($email){
mail($email,$to,$subject,$txt);
$don = array('result' =>"success","message"=>"Please check your email
account");
}else{
$don = array('result' =>"fail","message"=>"email was not entered");
}
echo json_encode($don);
?>
Any ideas?
Thanks.