1. Go to this page and download the library: Download wscore/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/ */
wscore / mail example snippets
use WScore\Mail\Transport\Transport;
use WScore\Mail\Mailer;
// 1. create a transport
$transport = Transport::forgeSmtp();
// 2. create a mailer
$mailer = Mailer::newInstance($transport);
// 3. send mails
$mailer->sendText('hello world', function(Swift_Message $message) {
$message->setTo('[email protected]', 'tested');
});