6 function mail_settings_create_example(){
9 'name' => 'my mail setting',
10 'domain' => 'setting.com',
11 'local_part' => 'civicrm+',
12 'server' => 'localhost',
18 $result = civicrm_api( 'mail_settings','create',$params );
24 * Function returns array of result expected from previous function
26 function mail_settings_create_expectedresult(){
28 $expectedResult = array(
37 'name' => 'my mail setting',
39 'domain' => 'setting.com',
43 'server' => 'localhost',
53 return $expectedResult ;
58 * This example has been generated from the API test suite. The test that created it is called
60 * testCreateMailSettings and can be found in
61 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/MailSettingsTest.php
63 * You can see the outcome of the API tests at
64 * http://tests.dev.civicrm.org/trunk/results-api_v3
66 * To Learn about the API read
67 * http://book.civicrm.org/developer/current/techniques/api/
69 * and review the wiki at
70 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
72 * Read more about testing here
73 * http://wiki.civicrm.org/confluence/display/CRM/Testing
75 * API Standards documentation:
76 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards