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.


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

Share This Post

Related Articles

© 2017 Sumit Bansal. All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie