Git Product home page Git Product logo

export_whm_emails's Introduction

WHM/cPanel Get a list of all emails for all accounts in .CSV format

Description

A PHP script to output cPanel account and email addresses:

In this format:

[email protected],371.99,2000.00
[email protected],471.99,3000.00
[email protected],571.99,4000.00

or this format:

accountname1,[email protected]
accountname1,[email protected]
accountname2,[email protected]

Usage

Execute the script either for a specific username or for all accounts.

php export.php username
php export.php all

Installation

First get the script on your computer:

git clone https://github.com/eugenevdm/export_whm_emails
cd export_whm_emails`
composer install`

Then copy .env.example to .env and add your server details:

HOST=https://myserver.domain.com:2087
USERNAME=
AUTH_TYPE=
PASSWORD=

AUTH_TYPE can be hash or password

If you're using hash, get the hash from:

WHM-->>CLusters-->>Remote Access Key-->>Access Key For User

Credits

https://packagist.org/packages/gufy/cpanel-php

The inspiration for this script was found on the cPanel forum. https://forums.cpanel.net/threads/list-all-mailboxes-email-addresses-defined-on-server.75372/

Additional posts and script links exist on the cPanel forum too: https://forums.cpanel.net/threads/export-email-account-addresses.82169/

Support

Contact [email protected] or +27 82 3096710 for support https://vander.host Servers, Emails, and Domain Name Registration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.