...
- To start configuring data providers, first copy this file from application/config/data-provider.php to application/config/environments/development/data-provider.php
Edit application/config/environments/development/data-provider.php and enable the providers you need. Here's an example config to enable SMSSync and email providers.
Code Block title application/config/environments/development/data-provider.php <?php defined('SYSPATH') OR die('No direct script access.'); return array( 'default_providers' => array( Message_Type::SMS => 'smssync', // If you're using a different provider you should change this default provider for sending SMS. Message_Type::EMAIL => 'email', ), 'providers' => array( 'smssync' => TRUE, 'email' => TRUE, ), 'smssync' => array( 'from' => '12345', // This should be the mobile number we send from 'secret' => '1234' // Put this secret key in the SMSSync settings on your phone ), 'email' => array( 'from' => 'test@gmail.com', 'from_name' => 'tester', 'incoming_type' => 'pop3', 'incoming_server' => 'pop.gmail.com', 'incoming_port' => '995', 'incoming_security' => 'ssl', 'incoming_username' => 'test@gmail.com', 'incoming_password' => 'sometestpassword', 'outgoing_type' => 'smtp', 'outgoing_server' => 'smtp.gmail.com', 'outgoing_port' => '465', 'outgoing_security' => 'ssl', 'outgoing_username' => 'test@gmail.com', 'outgoing_password' => 'sometestpassword' ) );
- Once you've configured providers, run
./minion dataproviderDataProvider:incoming - to check incoming messages
./minion dataproviderDataProvider:outgoing - to send outgoing messages
For a real deployment you probably want to set up a cronjob to run ./minion dataproviderDataProvider:incoming regularly.
At the moment there isn't any UI for sending outgoing messages, so there's not much use creating a cronjob for that.