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.

Share This Post

3 Responses to "How to export Email List from cpanel using javascript and firebug"

Post Comment