joomla3.0 - add html url tag in joomla php function -
i have installed joomla 3 , have installed leave management component in joomla. working perfectly. want customize mail function. while changing code have problem. want add html url in message body. here below code.
//email function message body $body = "dear mr. ".$manager_name.", \n\n have received leave request:\n\n name: " .$fromusers_name."\n\n leave type: " .$subject."\n\n date: " .$fromdate."\n\n date: " .$todate."\n\n message: " .$message."\n\n ". ?><a href="http://intranet/intranet">click here</a> <?php ." " ; // email message body if run code means joomla not running, blank page coming.
try using following:
$body = "dear mr. ".$manager_name. ", \n\n have received leave request:\n\n name: " .$fromusers_name. "\n\n leave type: " .$subject. "\n\n date: " .$fromdate. "\n\n date: " .$todate. "\n\n message: " .$message. "\n\n <a href='http://intranet/intranet'>click here</a>";
Comments
Post a Comment