Page 1 of 1

CMSMailer

Posted: Wed Sep 20, 2006 9:41 am
by mrs_smith
after study about cms in cms made simple. I read paper help in cmsmailer of malquy1000@hootmail.com. But I do not use it
I do not know this code:

$cmsmailer = $this->GetModuleInstance('CMSMailer');
  $cmsmailer->AddAddress('calguy1000@hotmail.com','calguy');
  $cmsmailer->SetBody('This is a test message');
  $cmsmailer->IsHTML(true);
  $cmsmailer->SetSubject('Test message');
  $cmsmailer->Send();

what is this code?
how it is using?
diffrenced modules using very goog, but modules about cmsmailer is not know
do I used all function of API ?
I hope will recived your help
thanks !

Re: CMSMailer

Posted: Wed Sep 20, 2006 1:22 pm
by calguy1000
CMSMailer is simply a wrapper around phpmailer.  it's designed to allow other modules to have advanced mailing capabilities.
It does not provide any frontend to the user, and has a small admin panel for configuration purposes.

it is part of the 1.0 core package as many modules now use it to send emails.