Hi there,
we are looking for customization for our PHP Mail client called Rainloop
we need custom FROM field that will only work for our separate external domain's mail account,
auto mail account creation and auto add into fetchmail or getmail for retrieving
so if user decided to send from not existed mail account say [login to view URL]
user will enter the mail all as usual when they click to send the script in the background will login onto Cpanel website and create that mail account and add into fetch mail so all will come under same one account into new folder.
Cpanel might not use API so you need to be good at using php/Curl to make the script login and create the mail account.