Page 1 of 1

accessing cmsms Page from batch PHP code?

Posted: Wed Sep 22, 2010 5:47 pm
by mikemee
We have a batch PHP process that runs periodically from cron that includes sending an email.

We'd like to pull the text for the email out of a CMSMS Page (i.e. the content field).

Any suggestions on how to do this?  Would it be just like coding a module or ??  I.e. specifically:
  • what files should we include to enable the cmsms functionality?
  • what function do we call to access the appropriate page?
  • what cmsms function is best to send the email (so we can re-use the CMSMailer settings)?
thanks! michael

Re: accessing cmsms Page from batch PHP code?

Posted: Fri Sep 24, 2010 9:22 am
by Peciura
I believe it is easier to execute custom sql query and build php functions mail() or imap_mail().
Other option is to create page with UDT that is using CMSmailer and Content operations (or ADOdb API) and open it with wget from cron.