2

I'd like to create email accounts (email@myserver.com) dynamically as well as access the email to check and send mail. I currently use Codeigniter as my framework, but I couldn't find any working libraries to do this.

I've looked online and it appears Zend Framework can check your emails, I don't know if it can create email accounts though. From my research it appears that I can only create accounts through the cpanel or plesk api's. Are there any frameworks then with cpanel api libraries I can get?

Tyler
  • 3,713
  • 6
  • 37
  • 63
  • You can use the [xmlapi-php](https://github.com/CpanelInc/xmlapi-php) class to interface with cpanel. The class is framework-agnostic so it doesn't matter what framework you're using. btw: In cPanel there's already a webmail-thing included: why bother reinventing the wheel? – vstm Aug 20 '12 at 13:52
  • I appreciate it. I'd prefer something that is customized for a single framework if possible. – Tyler Aug 20 '12 at 14:02

1 Answers1

1

You can see in the comments the correct answer. Plesk provides a XML-API

Plesk PHP API How to use
Creating an A-Record with Plesk API
Autoinstallation Wordpress by Plesk API in subdomain

here are some sites how to use it and some hits. Here on Stackoverflow are some posts that can help you with your problem.

Community
  • 1
  • 1
René Höhle
  • 26,716
  • 22
  • 73
  • 82