This contact importer was made in order to allow users to import contacts from other email programs into their Iloha contact list.  It is pretty basic, in that it currently only imports CSV (comma seperated variables) or TSV (tab seperated variables) text files.  Fortunately, almost every email program in existence can export at least one of these formats, as can most spreadsheet programs.  The format called 'MS Outlook' format in some email programs is really just a TSV file.  Currently, there is no contact export function, although that is in the works. 

To install the contact importer, just copy the three files, addcontacts.php, addcontacts2.php, and addcontacts3.php into the IlohaMail 'source' directory.  You'll then have to create a link to addcontacts.php somewhere.  I added mine to contacts.php in the 'source' directory.  I have inlcuded a code snippet below that shows you what I added to contacts.php and where.  You can really put the link anywhere you like as long as the href part of the link is the same. 

From contacts.php, starting at line 141: 

$groups = GetGroups($contacts); 
echo '<p><a href="edit_contact.php?user='.$sid.'&edit=-1" class="mainLight">'.$cStrings[1].'</a><br>'; 
// line below added to link to contact importer 
echo '<p><a href="addcontacts.php?user='.$sid.'" class="mainLight">Import Contacts from another program</a><br>'; 
echo "\n"; 

That should do it.  If you encounter any problems with the contact importer or have any useful suggestions or code contributions, please contact me (Ben Weinberg) at ben@bensbrain.com. 

