jimport('joomla.mail.helper');
$mail = JMail::getInstance();
$config = JFactory::getConfig();
$data['mailfrom'] = $config->get('mailfrom');
$data['fromname'] = $config->get('fromname');
$data['sitename'] = $config->get('sitename');
$emailSubject ='Oggetto';
$emailBody ='Body';
$mail->addRecipient(array('email1','email2','ecc...')); // puoi anche mettere un indirizzo solo senza usare l'array
$mail->setSender(array($data['mailfrom'], $data['fromname']));
$mail->setSubject($emailSubject);
$mail->setBody($emailBody);
//// $mail->IsHTML(true); //// se vuoi mettere l'html
$sent = $mail->Send();