1. Go to this page and download the library: Download nettsite/nettmail-laravel 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/ */
nettsite / nettmail-laravel example snippets
use NettSite\NettMail\Facades\NettMail;
NettMail::eraseContact($contactId);
use Illuminate\Console\Scheduling\Schedule;
->withSchedule(function (Schedule $schedule): void {
// Sends scheduled broadcast campaigns once their send time arrives.
$schedule->command('nettmail:dispatch-scheduled')->everyMinute();
// Polls the configured bounce mailbox for DSNs and complaints.
$schedule->command('nettmail:poll-bounces')->everyFiveMinutes();
// Purges send logs and events older than `retention.send_log_years`.
$schedule->command('nettmail:purge')->daily();
})
use NettSite\NettMail\Contacts\ContactSourceRegistry;
public function boot(ContactSourceRegistry $registry): void
{
$registry->register(new MerlinClientContactSource);
}