$apiMail = AccountFactory::instance($host, $format);
$account = new AccountSelector(AccountBy::NAME(), $email1);
$apiMail->auth($account, $pass);//account as admin
$prefclass = new Pref("+zimbraPrefMailForwardingAddress", $email2);
$pref = $apiMail->modifyPrefs([$prefclass2]);
I don’t have any errors on running, but forwarding not working.
Any ideas ?
- Zimbra Collaboration 8.6 Patch 9 now available (includes fix for CVE-2017-8802). Read the announcement.
- Zimbra Collaboration 8.8.7 + Zimbra Connector for Outlook 8.8.7 are available.. Read the announcement.
- Are you a Zimbra Developer? You can find some interesting stuff in our Official GitHub: https://github.com/Zimbra and check the Community Projects too: https://github.com/Zimbra-Community/
I need forward email1 to email2 thrue Zimbra Api. I use “zimbra-api” library – composer php project.
Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests