Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Igor Herson Aquino de França  >  Export email list to CSV and vCard  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example
Class: Export email list to CSV and vCard
Export contact lists in CSV and vCard formats
Author: By
Last change:
Date: 2009-12-29 07:01
Size: 691 bytes
 

Contents

Class file image Download
<?php
include('emailexport.class.php');
$emailExport = new emailExport();

$emails = array();
$emails[] = array('firstName' => 'Igor''middleName' => 'Herson''lastName' => 'Aquino''email1' => 'igorhaf@gmail.com''email2' => 'ihaf@ig.com.br''email3' => 'ihaf@hotmail.com');
$emails[] = array('firstName' => 'Jenner''middleName' => 'Portela''lastName' => 'Chagas''email1' => 'gtr_portela@hotmail.com''email2' => 'jenner.gtr@gmail.com');

$emailExport->getList($emails);
$emailExport->exportVcard();
$emailExport->exportCsv();
?>
<p align="right"><span><a href="export.vcf">Exportar para vCard</a></span> - <span><a href="export.csv">Exportar para CVS</a></span></p>