You can use the JUtility class to send the mail:
JUtility::sendMail($mailfrom, $fromname, $recipient, $subject, $message, true);
$recipient is the email address you're sending the mail to, and the last parameter is a flag indicating whether the email uses HTML or not ( true = uses HTML ).
However, if you have to send a lot of mails, it would be better to use the Joomla mailer instead of calling JUtility each time.
$mail =& JFactory::getMailer();
$mail->setSender(array($from, $fromname));
$mail->setSubject($subject);
$mail->setBody($body);
$mail->IsHTML(true);
$mail->addRecipient($recipient);
$mail->Send();
I hope it helped!
I'm editing, I forgot to mention how to work with your data
To craft the body of the message, it would depend on how your data is returned.
If it's an associative array, you should do something like this:
$message = "Hello {$dataarray[ 'name' ]}, thank you for adding a comment to our article {$datarray[ 'article_title']}!";
If your "getData()" method is returning an object.. well in fact crafting the message is just building a string and filling it with your data.
For very large emails, I usually have a template like this:
Hello %%USERNAME%%, thank you for adding a comment to our article %%ARTICLE_TITLE%%!
And then what you should do is:
$message = file_get_contents( 'your_template.tpl' );
$search = array( "%%USERNAME%%", "%%ARTICLE_TITLE%%" );
$replace = array( $dataarray[ 'name' ], $dataarray[ 'article_title' ] );
$message = str_replace( $search, $replace, $message );
That's all!