PHP code example of zimbra-api / mail

1. Go to this page and download the library: Download zimbra-api/mail library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zimbra-api / mail example snippets




// This file is generated by Composer
or(\Zimbra\Enum\AccountBy::NAME(), 'username');
$api = \Zimbra\Mail\MailFactory::instance('https://localhost/service/soap');
$api->auth($account, 'password');