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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -