Aug 092012
 

If you want to sent email programmatically.

JUtility::sendMail($from, $fromname, $recipient, $subject, $body, $mode,
 $cc, $bcc, $attachment, $replyto, $replytoname);

If you need it to be more advanced get mailer and configure on your own

$mailer =& JFactory::getMailer();
$mailer->IsHTML(false);
$mailer->setSubject("Hello World");
$mailer->setBody("Hello from Joomla");
$mailer->addRecipient('your@email.com');
$mailer->AddCustomHeader('X-Header: example');
$mailer->Send();