I saw that I need to send this variable- $valueDoc->title
someone can help me to use mail function to send an email with this variable?
Thanks a lot




Code: Select all
$from = 'broken@domain.com';
$fromname = 'BrokenLink@domain.com';
$subject = 'BrokenLink';
$body = $valueDoc->title;
$recipient[] = 'myemail@gmail.com';
JUtility::sendMail($from, $fromname, $recipient, $subject, $body);
echo '<a href="#" onclick='sendMail()'>Broken Link</a>';

