Skip to content

stromme/mailboxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailboxes

Add and remove email accounts on a server. Compatible with WP3.5 multisite.

Context Plugin should only load for logged in wordpress users who are currently viewing the custom post type 'toolbox' or are in wp-admin.

WP-admin Settings

Add settings to NETWORK ADMIN SETTINGS tab in wp-admin. Settings section called 'mailboxes'. Add settings for:

  • Server API - currently the only option will be cPanel
  • Authentication - Whatever is needed to authenticate with cPanel API

Compatible server API's

  • cPanel

Methods

Add a new account

  • Creates new email account in cPanel.

  • Appends the name of the new account to an array called tb_settings_mailboxes using wp function update_option. tb_settings_mailboxes will contain an array of all the mailboxes created for a given wp site.

Method:

mailbox->add

Properties:

account_name (req'd) Name of the email account to add.

fowards_to (optional) If filled in create an email forwarder instead of a standard email account.

Returns: status array

Remove an account

  • Delete an email account in cPanel
  • Remove account name from tb_settings_mailboxes

Method:

mailbox->delete

Properties:

account_name (req'd) Name of existing account to delete.

Returns: status array

Update Account Password

mailbox->update_password

Properties

account_name (req'd) Name of existing account to update

new_password (req'd) New password to be updated

Returns: status array

Settings

The mailboxes configuration can only be accessed from **network admin settings -> mailboxes menu.

Settings that can be updated in network admin:

  • Website host

  • Domain

  • cPanel port

  • Use SSL or not

  • Default quota (in Megabytes)

  • cPanel Username

  • cPanel Password

These settings should be updated first before using any functions in site admin.

Resources

An older plugin that tackles this same issue. http://wordpress.org/extend/plugins/cpanel-operations/installation/

A cPanel API plugin. No email account handling, but ex. of cPanel Api integration. http://wordpress.org/extend/plugins/cpanel-manager-from-worpit/

About

WP PLUGIN - Add and remove mailboxes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published