Bulk set default email address
Hi,
I've got several subdomains created for a main domain like this:
sb1.company.com
sb2.company.com
sb3.company.com
I also have emails created for each subdomain:
contact@sb1.company.com
contact@sb2.company.com
contact@sb3.company.com
I'd like to set each email as a default address for each subdomain without manually going through the process in cPanel one by one. Is there a script or easy way to achieve that?
Thanks!
-
After re-reading that API documenation, it would still work well but you would just need to add the option "domain" flag so it knows the specific subdomain you are working with. This could then be scripted to loop through a text file and setup the preference(s) of your choice. 0 -
So you say that, there is a way but I have to write my own script to do that. 0 -
That's correct. The API call would let you do it for one account at a time, but you'd need to create a custom script if you wanted it to loop through the accounts on the server. 0 -
Ok, I'll figure out something. Thanks a lot! 0
Please sign in to leave a comment.
Comments
6 comments