please help me that when i use function (mail_to_user) :
$body = "Hi User<br/><br/>"."You have been enrolled to course"." ".$course->fullname ." "."Please login to start your course."." ".$courselink." "."<br/><br/>"."Thanks,"."<br/>Admin";
email_to_user($user,$USER,'Enrollment Notification','The text of the message',$body);
the mail was received contain "The text of the message" not ($body ).
many thanks.