PHP code example of aulinks / mail-extractor
1. Go to this page and download the library: Download aulinks/mail-extractor 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/ */
aulinks / mail-extractor example snippets
use Aulinks\MailExtractor\MailExtractor;
$extractor = new MailExtractor;
$mails = $extractor->extractMails('Contact me on [email protected]');
$mails = $extractor->extractMailsFromFile('/path/to/file.pdf');
$mails = $extractor->extractMailsFromDirectory('/path/to/directory');