Page 1 of 1

Help me about using CMSMailer

Posted: Wed Sep 20, 2006 9:17 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: Help me about using CMSMailer

Posted: Thu Sep 21, 2006 2:36 am
by Dee
From the module help: it is designed to be integrated into other modules to provide email capabilities. Thats it, nothing more.
Your questions are not very clear, but the code presented is an example of how developers could use the CMSMailer module from another module. Hope that helps.