Skip to content

rizkyjs/cpanelEmailCreator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cpanel Email Creator

To create an email using your own domain.

Example

<?php

require 'src/email.php';

$mail = new cpanelEmailCreator();
$mail->url = 'CPANEL_URL';
$mail->username = 'CPANEL_USERNAME';
$mail->password = 'CPANEL_PASSWORD';

$login = json_decode($mail->loginCpanel());

$quota = 1024; // mb

echo $mail->createEmail($login->cpanelUser, 'DOMAIN', 'USERNAME', 'PASSWORD', $quota);

Response

Success

{"warnings":null,"status":1,"messages":[""],"data":"username+domain","errors":null,"metadata":{}}

Failed

{"warnings":null,"status":0,"messages":null,"errors":[""],"data":null,"metadata":{}}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%