Daniel,
I want to take a moment first to complement you on creating CMandrill, and for making it avaiable gratis.
After learning about Mandrill, I finally started using it today. Your component/plugin made it very easy to use Mandrill -- my contact form, for example.
I want to start using Mandrill -- and your wonderful component/plugin -- with my LaSalleMart ecomm extension. See my new Knowledge Base page at
southlasalle.atlassian.net/wiki/display/...your+email+send-outs
.
My first use case with Mandrill is with Joomla's CLI. At the end of all the processing, I want to send an email.
I am successful sending the email with:
$mailer = JFactory::getMailer();
$mailer->setSender($from);
$mailer->addRecipient($to);
$mailer->setSubject($subject);
$mailer->setBody($subject);
$mailer->send();
Getting my CLI app to harness your wonderful component/plugin -- well, I'm having trouble. I am hoping you can help.
I'm doing variations of the following:
JPluginHelper::importPlugin('Mandrill');
JDispatcher::getInstance()->trigger('onAfterInitialise');
$mailer = JFactory::getMailer();
$mailer->setSender($from);
$mailer->addRecipient($to);
$mailer->setSubject($subject);
$mailer->setBody($subject);
$mailer->send();
Do I need to use "jimport('joomla.application.component.helper');" before "JDispatcher"?
Thank you for your help, Daniel.
-Bob Bloom