Hey Guys,
below is the example custom function for sending email using in joomla function
------------------------------------------------------------------
public function sendRegistrationEmail($sender='', $replyTo='', $replyFromName='', $recipient='', $bcc='', $messageSubject='', $messageBody=''){
$mailer = & JFactory::getMailer();
$mailer->setSubject($messageSubject);
$mailer->Encoding = 'base64';
$mailer->setSender($sender);
$mailer->addRecipient($recipient);
$mailer->addReplyTo($replyTo, $replyFromName);
$mailer->isHTML(true);
$mailer->setBody($messageBody);
$mailer->addBCC($bcc);
$mailsent = & $mailer->Send();
$send = ($mailsent)?(true):(false);
return $send;
}
below is the example custom function for sending email using in joomla function
------------------------------------------------------------------
public function sendRegistrationEmail($sender='', $replyTo='', $replyFromName='', $recipient='', $bcc='', $messageSubject='', $messageBody=''){
$mailer = & JFactory::getMailer();
$mailer->setSubject($messageSubject);
$mailer->Encoding = 'base64';
$mailer->setSender($sender);
$mailer->addRecipient($recipient);
$mailer->addReplyTo($replyTo, $replyFromName);
$mailer->isHTML(true);
$mailer->setBody($messageBody);
$mailer->addBCC($bcc);
$mailsent = & $mailer->Send();
$send = ($mailsent)?(true):(false);
return $send;
}