accessing cmsms Page from batch PHP code?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
mikemee
Forum Members
Forum Members
Posts: 20
Joined: Sun May 21, 2006 11:31 am

accessing cmsms Page from batch PHP code?

Post 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
Peciura

Re: accessing cmsms Page from batch PHP code?

Post 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.
Post Reply

Return to “Modules/Add-Ons”