Normally (manually) I create email accounts using cpanel. I created a way to add email accounts with a modified script based of cpanelmail. It uses fsocketopen and my cpanel login to run the cpanel script. It worked great. I didn't like having my cpanel login on a page but it worked great.
Now all of a sudden it stopped working and I didn't change anything. It doesn't display any errors.
I'm thinking my hoster switch something. I'm waiting to hear.
But until then I need to figure out how to create email accounts. I've used imap_createmailbox but it just creates a file and my webmail won't read it. I've used mkdir and imap_createmailbox but my webmail won't read it either. I've search from scripts but have not found anything. I thinking I'm looking for the wrong thing.