1. Go to this page and download the library: Download xepan/mail 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/ */
xepan / mail example snippets
use Nette\Mail\Message;
$mail = new Message;
$mail->setFrom('John <[email protected]>')
->addTo('[email protected]')
->addTo('[email protected]')
->setSubject('Order Confirmation')
->setBody("Hello, Your order has been accepted.");
use Nette\Mail\SendmailMailer;
$mailer = new SendmailMailer;
$mailer->send($mail);