How to export Email List from cpanel using javascript and firebug

To export the email address with the help of java-script:

Login your cpanel and select the Email Accounts under the Mail section and change the result per page to show all the emails.

Now open your firebug with command editor and copy paste the given below script.

var rows = $("#table_email_accts tr.dt_info_row"),
                returnString = "";
        rows.each(function (i, item) {
            var tdList = [];
            $(item).find('td:eq(0)').each(function (s, subItem) {
                tdList.push($(subItem).text());
            });
            returnString += tdList + "\n";
        });
        console.log(returnString);

Now click on run command you will get the list of all emails.

Now copy and paste the list of emails in excel and save as csv format.

Bansal Sumit

To seek challenging roles and to achieve excellence in the field of Open Source Web Technology with a profound spirit of commitment and dedication.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.