我有一个域和 CPanel 帐户,我可以从中创建电子邮件帐户。
我想编写一个 PHP 脚本来连接到提供用户名和密码的任何创建的电子邮件帐户,并查看发送到此电子邮件收件箱的所有电子邮件。
如果可能的话,我希望有一个创建这种脚本的指南。
I agree with Darren 100% there is no need to use Cpanel API to connect to the email,the email is still email and will work with conventional POP3 or IMAP protocols as mentioned above.
您想使用与 cPanel 没有任何关系的 POP3 或 IMAP 协议。否则,对于 cPanel 帐户功能,您需要在http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/XmlApi#Account功能处使用他们的 API。