PHP code example of naif / cpanel-mail
1. Go to this page and download the library: Download naif/cpanel-mail library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
naif / cpanel-mail example snippets
public function tools()
{
return [
new CpanelMail()
];
}
CPANEL_DOMAIN=domain.com
CPANEL_HOST=https://domain.com
CPANEL_PORT=2083
CPANEL_USERNAME=user
CPANEL_PASSWORD=password