| 
<?php
 echo '<pre>';
 
 require_once 'File_Format_Iaf.php';
 
 $iaf = new File_Format_Iaf();
 
 
 //if (!$iaf->load('test.iaf')) echo 'error=' . $iaf->error();
 
 echo 'POP3Password = ' . $iaf->POP3Password;
 
 
 $iaf->AccountName = 'Почтовый ящик [email protected]';
 $iaf->MakeAvailableOffline = 1;
 
 // pop3
 
 $iaf->POP3Server = 'pop3.test.ru';
 $iaf->POP3UserName = 'test';
 $iaf->POP3Password = '987321';
 //$iaf->POP3Port = 995;
 //$iaf->POP3SecureConnection = 1;
 $iaf->POP3LeaveMailOnServer = 0;
 $iaf->POP3PasswordPrompt = 0;
 
 // smtp
 
 $iaf->SMTPDisplayName = 'Test User';
 $iaf->SMTPEmailAddress = '[email protected]';
 $iaf->SMTPServer = 'smtp.test.ru';
 $iaf->SMTPUserName = 'test';
 //$iaf->SMTPPassword = '987654';
 //$iaf->SMTPPasswordPrompt = 0;
 //$iaf->SMTPPort = 465;
 //$iaf->SMTPSecureConnection = 1;
 //$iaf->SMTPAuthMethod = 3;
 
 if (!$iaf->save('export.iaf')) echo 'error=' . $iaf->error();
 
 // echo to browser
 // echo $iaf->render();
 
 print_r($iaf->getFields());
 
 |