1. Go to this page and download the library: Download rareloop/lumberjack-email 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/ */
use Rareloop\Lumberjack\Email\Facades\Email;
Email::sendPlain(
'[email protected]',
'Email Subject line',
'Plain text body',
);
use Rareloop\Lumberjack\Email\Facades\Email;
Email::sendPlain(
'[email protected]',
'Email Subject line',
'Plain text body',
false, // Set reply-to to false if you don't need it, necessary because attachments is the final argument
['/path/to/file.pdf']
);