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();

  One Response to “How can I send emails from Joomla?”

  1. I notice you’re can be in all honesty enthusiastic about such a! We have been aiming to construct mine web page and also you get forced me to be which include good knowledge.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>