1. Go to this page and download the library: Download maatify/mailer 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/ */
maatify / mailer example snippets
use Maatify\Mailer\Service\Mailer;
TP_USER, SMTP_PASS, SMTP_FROM_MAIL, SMTP_FROM_NAME,
// EMAIL_SITE_URL, EMAIL_SITE_LOGO, EMAIL_SITE_NAME) are read from $_ENV.
$mailer = new Mailer('[email protected]', 'User Name', '', __DIR__ . '/templates/email');
if ($mailer->ConfirmCode('482913')) {
// the SMTP server accepted the message
} else {
// it was not accepted, or could not be sent
}
// 5.x
use Maatify\Mailer\Mailer;
// 6.0.0
use Maatify\Mailer\Service\Mailer;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.