PHP code example of phant / email-sender

1. Go to this page and download the library: Download phant/email-sender 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/ */

    

phant / email-sender example snippets


use Phant\EmailSender\Service\EmailAddressValidator;

$emailAddressValidator = new EmailAddressValidator();

if (!$emailAddressValidator->checkTrashMailBoxService('[email protected]') {
	// E-mail address provided by a trash mail box service
}

if (!$emailAddressValidator->checkMxServer('[email protected]') {
	// E-mail address linked to a domain name without an e-mail server
}

use Phant\EmailSender\Service\HtmlToText;

$html = '';

$text = (new HtmlToText)(html);