问题描述
如何使用php更改邮件帐户的密码.我正在使用IMAP函数.
How can I change password of the mail account using php. I am using IMAP functions.
IMAP doc: http://php.net/manual/zh/book.imap .php
IMAP doc : http://php.net/manual/en/book.imap.php
注意:无需使用cpanel API
Note: There is no acess to cpanel API
推荐答案
如果您无权访问cPanel API,那么您甚至更有可能根本无权访问制作文件所需的各种文件.变化.
If you don't have access to the cPanel API, then you're even less likely to have root access to the various files that would be needed to make the changes.
更改密码不是IMAP,POP或SMTP的功能-这是服务器配置问题,因此您需要操纵服务器配置.多个主机提供API(例如cPanel/Hostgator),但您已经排除了这一点,因此他唯一的选择是"exec",而对于cPanel,Plesk或类似的产品,我不会碰它还需要对存储配置的数据库进行操作.好的,如果您具有root用户访问权限.
Changing passwords is not a feature of IMAP, POP or SMTP - it's a server configuration issue, so you need to manipulate the server configuration. Several hosts provide APIs (such as cPanel / Hostgator) but you've ruled that out, so he only other option would be "exec", and I wouldn't touch that with a bargepole for cPanel, Plesk or simlar as you'd also need ot manuliplate the databases that store the configs. Ouch, if if you had root access.
更多的研究,我发现了这一点: http: //trac.roundcube.net/browser/github/plugins/password/password.php 支持多个后端.但是,cPanel选项使用cPanel API.所以仍然没有运气!
A bit more reasearch and I have found this: http://trac.roundcube.net/browser/github/plugins/password/password.php that supports several back ends. However the cPanel option uses the cPanel API; so still no luck!
这篇关于IMAP:通过php更改电子邮件密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!