Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 03-05-2007, 11:54 PM
Chief Plasma Chief Plasma is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 22
Default A method for creating many email accounts

A method is needed to create email accounts in mass.
This is needed when migrating from existing servers.
Who really wants to sit there and type an account, click create, click go back, repeat 100+ times.

Or

If there was a separate admin function for email not linked to the control panel that other folks could use then we could split the work up.
(I asked support about that... nada)

I did find a kludge way around it using a tip from some php code that was trying to do this, excel (to build the html code), word (to reformat it), and a feature in my browser that will open all links on a page.
The tip came from www.zubrag.com/scripts
cPanel Email Account Creator 1.0
The php did not work but the idea does.
(del the spaces around that colon below.. .and that is one line)
http : //$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&passwor d=$epass&quota=$equota

$cpuser = your control panel id (your account)
$cppass = your password
$cpdomain = control panel domain (your domain or IP)
$cpskin = usually 'x'

$euser = The email user id
$epass = the email pw
$edomain = the email domain
$equota = quote in mb eg.. 20 etc.


I used that in excel with a list from my existing email server to build the html code. Took that and pasted into word (as plain text). excel was being a pita about the links. Saved the file as html.
Opened up in my browser (avant) and used a feature that can open all web links of a page.

It created all 100 or so email accounts in about 30 seconds.


-cp

ps.. that might also work without the control panel user and pw if a cookie is already set and your loged into to the panel. I did not try it that way though.

Last edited by Chief Plasma; 03-05-2007 at 11:58 PM.
Reply With Quote
  #2  
Old 03-06-2007, 04:00 AM
riostyles riostyles is offline
Royal Croc
 
Join Date: Jan 2006
Location: Rio de Janeiro, Brazil
Posts: 765
Default Re: A method for creating many email accounts

Thank you for sharing this idea
Reply With Quote
  #3  
Old 03-06-2007, 02:37 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: A method for creating many email accounts

Thanks for reinventing the wheel for us. If you need any more panel functions, like create/delete accounts, ftp login, or such stuff, try searching for cpanel class here or in cpanel.net. There is a great php class for all of the normal cpanel functions.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #4  
Old 03-07-2007, 01:17 AM
Chief Plasma Chief Plasma is offline
Hatchling Croc
 
Join Date: Feb 2007
Posts: 22
Talking Re: A method for creating many email accounts

Wow that script was buried.
Even after searching here and finding another post with a better file name finally found what your talking about. "class.cpanel.php"
Make sure you use the quotes if your searching for it over there.
The thread over there is Automatic Deletion and Creation (Email, Subdomains, FTP, Addon/Parked domains, MySQL)
http://forums.cpanel.net/showthread....ass.cpanel.php
Unless there is another.
Some times re-creating the wheel is necessary to expose those hidden gems out there. As far as that script goes I did not see anything in there to address mass creation. One would have to build the same kludge or one like it that I ended up with.

Which was the original intent of the post. There should be something supported here at HG to mass load accounts.

Make it easier for folks to switch and they will.

-cp
Reply With Quote
  #5  
Old 03-07-2007, 11:53 AM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: A method for creating many email accounts

Quote:
Originally Posted by Chief Plasma View Post
Which was the original intent of the post. There should be something supported here at HG to mass load accounts.

Make it easier for folks to switch and they will.
Yes, if they aren't coming from a cpanel host, it can be a bit of a task to move.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #6  
Old 03-09-2007, 12:27 AM
charlesgan's Avatar
charlesgan charlesgan is offline
Swamp Croc
 
Join Date: Mar 2007
Location: http://www.hostgatorreview.org/
Posts: 372
Default Re: A method for creating many email accounts

Quote:
Originally Posted by Chief Plasma View Post
A method is needed to create email accounts in mass.
This is needed when migrating from existing servers.
Who really wants to sit there and type an account, click create, click go back, repeat 100+ times.

Or

If there was a separate admin function for email not linked to the control panel that other folks could use then we could split the work up.
(I asked support about that... nada)

I did find a kludge way around it using a tip from some php code that was trying to do this, excel (to build the html code), word (to reformat it), and a feature in my browser that will open all links on a page.
The tip came from www.zubrag.com/scripts
cPanel Email Account Creator 1.0
The php did not work but the idea does.
(del the spaces around that colon below.. .and that is one line)
http : //$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&passwor d=$epass&quota=$equota

$cpuser = your control panel id (your account)
$cppass = your password
$cpdomain = control panel domain (your domain or IP)
$cpskin = usually 'x'

$euser = The email user id
$epass = the email pw
$edomain = the email domain
$equota = quote in mb eg.. 20 etc.


I used that in excel with a list from my existing email server to build the html code. Took that and pasted into word (as plain text). excel was being a pita about the links. Saved the file as html.
Opened up in my browser (avant) and used a feature that can open all web links of a page.

It created all 100 or so email accounts in about 30 seconds.


-cp

ps.. that might also work without the control panel user and pw if a cookie is already set and your loged into to the panel. I did not try it that way though.
very useful script. thanks.
will come in handy
__________________
Charles Gan
Hostgatorreview.org
Reply With Quote
  #7  
Old 10-13-2007, 09:04 AM
kigoobe's Avatar
kigoobe kigoobe is offline
Junior Croc
 
Join Date: Sep 2006
Location: Paris
Posts: 160
Default Re: A method for creating many email accounts

Is this script still working? I was having it installed in one of my sites, and suddenly I found out today that this is no more working. Now, I am wondering if this has anything do with the cPanel upgrade that HG did a couple of months ago ...

If anyone of you are also facing any problem in this front, thanks for sharing.

edit
My mistake, it was a stupid password error mixed with the famous 'catch' thing, solved now.

Last edited by kigoobe; 10-13-2007 at 11:29 AM.
Reply With Quote
  #8  
Old 10-13-2007, 08:02 PM
riostyles riostyles is offline
Royal Croc
 
Join Date: Jan 2006
Location: Rio de Janeiro, Brazil
Posts: 765
Default Re: A method for creating many email accounts

You have also some good sticky about mass mail creating / transfert there: http://forums.cpanel.net/
Registration is free.
This said, Kigoobe, most of the time this kind of script behaviour is related to phpsueexec. try to inhibit php.ini temporarily in thr script containing folder. (Eventually reset the php version of the script working before in the htacces file)
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 02:56 PM.