由 Zimbra Api 使用的邮件库

1.0.2 2016-03-27 01:34 UTC

This package is auto-updated.

Last update: 2024-09-10 17:09:28 UTC


README

Zimbra 邮件为 zimbra 邮件客户端提供包装。

zimbra 邮件客户端的基本使用

<?php

// This file is generated by Composer
require_once 'vendor/autoload.php';

$account = new \Zimbra\Struct\AccountSelector(\Zimbra\Enum\AccountBy::NAME(), 'username');
$api = \Zimbra\Mail\MailFactory::instance('https:///service/soap');
$api->auth($account, 'password');

$api 对象中,您可以访问所有 Zimbra 邮件 API。

安装

此软件包可以通过 Composer <https://getcomposer.org.cn> 简单安装。只需将以下内容添加到项目根目录下的 composer.json 文件中

{
    "require": {
        "zimbra-api/mail": "*"
    }
}

然后使用 composer.phar install 命令安装依赖项。