How to integrate a PHP webmail script into the backend of WordPress?


How can you add Roundcube (or any other PHP webmail client script) to the WordPress backend? Can this be done so that the webmail client can be accessed only from inside wp-admin? It should not be accessible from any URL outside of wp-admin.

Where must the webmail client be installed on the webserver? If it’s installed for example at /webmail it could also be accessed through, which is something I’d like to avoid.

Please note that single sign on/off is not needed. The only thing that’s required is to hide the webmail script behind WordPress admin.

How would you do this? Your advise is highly appreciated. Thank you.

Would it be valid to:

  1. create a folder at /wp-content/plugins/webmail/roundcube and install roundcube into it?
  2. have a script to add a menu item to wp-admin, to display roundcube inside an iframe

Theoretically, this should hide Roundcube behind WordPress admin. But would that work? Or would that cause problems? How to tell WordPress to ignore the scripts at /wp-content/plugins/webmail/roundcube and ensure they are handled by PHP without WordPress interfering?

, SeProblam 5 years 2018-09-16T17:33:11-05:00 0 Answers 66 views 0

Leave an answer