使用fopen创建cPanel电子邮件帐户 [英] Creating cPanel email accounts with fopen
本文介绍了使用fopen创建cPanel电子邮件帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下代码同时创建电子邮件帐户和转发电子邮件。我很困惑,因为电子邮件转发每次都有效(f2),而电子邮件创建仅能工作一半时间(f1)。我是PHP的新手,不知道是什么原因造成的。感谢您的帮助!
I'm using the following code to create an email account and a email forward at the same time. I'm consfused as the email forward works every time (f2) and the email creation is only working roughly half the time (f1). I'm a PHP newbie and can't understand what could cause this. Any help is appreciated!
$f = fopen ("https://$cpuser:$cppass@$cpdomain:2083/frontend/$cpskin/mail/doaddpop.html?email=$username&domain=$cpdomain&password=$password"a=0", "r");
fclose($f);
$f2 = fopen ("https://$cpuser:$cppass@$cpdomain:2083/frontend/$cpskin/mail/doaddfwd.html?email=all&domain=$cpdomain&fwdemail=$email&fwdopt=fwd&submit=Add Forwarder", "r");
fclose($f2);
推荐答案
$fopen ("http://$cp_user:$cp_pass@$cp_domain:2082/frontend/$cp_skin/mail/doaddpop.html?email=$user&domain=$e_domain&password=$e_pass"a=$e_quota", "r");
1。 http://tobbynews.com/create-e-mail-account-in-c-panel-using-php.html
2. http://forums.cpanel.net/f42/xmlapi-php-class-111897 .html
您可以要求cpanel支持帮助。
you can ask for support in cpanel's support for assistance..
这篇关于使用fopen创建cPanel电子邮件帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文