$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 9.0.0 now available. Read the release notes.
- Zimbra Collaboration 8.8.15 LTS now available. Read the release notes.
- Are you a Zimbra Developer? You can find some interesting stuff in our Official GitHub, Blog and the Community Github.
- Zimbra is Open Source! Read the FAQ. You can also contribute and build binary from source!
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 1 guest