Send messages to Ofuz users

We suggest to use the EmailTemplate object and store them with their translation in the email_template table.

To send a message to an Ofuz user you need an EmailTemplate object and then pass it to the method User→sendMessage().

The sendMessage() methods takes 2 parameters:

  • An Array of field/values to merge with the [] fields.

Examples

Send a message to the currently signed in User.

   $_SESSION['do_User']->sendMessage(new EmailTemplate("regthank"));

This will load from the email_template table the regthank template and send it to the currently sign in user. When Ofuz users sign-in the do_User object from the User class is instantiated and stored in the session.

 
tutorial/send_emails_to_ofuz_users.txt · Last modified: 2010/08/25 08:18 by philippe
 
Copyright © SQLFusion LLC all rights reserved