First of all, if you've been using the previous version, there are some significant changes : most variables names and all function names have been changed in order to avoid possible conflicts with the rest of your script.
Then, both dhapi_panelEmailCreate()
and dhapi_panelEmailEdit()
functions have a new parameter that may break your exisiting code. See documentation for more inforations about this new feature : now you can set an email address to be forward-only, so all incoming mail will be locally deleted after they are forwarded. You will not be able to even connect to the mailbox... Well that just emulating the panel options : fully-hosted, forward-only or garbage mailbox...
We now also have a dhapi_panelEmailDelete()
function that takes for parameter the email address you want to delete (do not forget to dhapi_panelConnect()
first and to dhapi_panelDisconnect()
after!)
This should be enough for the email part! Please, test it and report about it!
Coming up next, cron jobs! Because I will need them... Do you think it's better with SSH or via the panel? Please feel free to contribute to whatever part you think may be useful to you, adding a function is quite easy!