PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
  Classes of ruslan kononov  >  IAF decoder coder  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: IAF decoder coder
Parse and generate Outlook IAF configuration files
Author: By
Last change: get_fields() renamed as getFields()
Date: 7 years ago
Size: 993 bytes
 

Contents

Class file image Download
<?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 = 'Почтовый ящик test@test.ru';
$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 = 'test@test.ru';
$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());