• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Free Email Accounts

Z

ZeroPain

Guest
i want to offer free email acccounts on one of my sites, is there a script that will creat email account automaticly that intergreats with plesk?

I have looked though the API i am pretty skilled in php but not an expert. and i can't find anything there in the API to allow mail account creation.

I know i can do it via the /usr/local/psa/bin/mail.sh but i don't know of a way to run this via a php script running under apache. cause as i understand it needs to be run under root.

I do have root access to this server. I'm looking for a way to make my own or at least some help an idea on how to make a php creation script. so ppl visiting my website could sign up for a email account on that site. i can do everything myself save for the actual adding of the email account to the system. if anyone has any ideas or an example of a function i could use to do this it would be a great help.


Steven Norder
 
Since 7.5.3 Plesk API RPC supports operations with mailnames. Look at the content of psa-api-rpc-protocol package - there are requests format descriptions.
 
where would i go to get that or find more documenation on it cause the docs on the web site don't show that
 
Yeah looks like they haven't updated those docs cause says nothing about mail
 
I figured it out and made it work thank you very much for your help. and i am using the api-rpc interface but i guess they just added it in 7.5.3 i can't remember if i read this in this post or another.

Thank you again.


Steven
 
Back
Top