PHP code example of drewlabs / envoyer-smtp
1. Go to this page and download the library: Download drewlabs/envoyer-smtp 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/ */
drewlabs / envoyer-smtp example snippets
use Drewlabs\Envoyer\Drivers\Smtp\SymfonyMailerAdapter;
use Drewlabs\Envoyer\Mail;
use Drewlabs\Envoyer\SMTPServer;
$config = ct('No Attachment Registration')
->content(bject
$adapter = new SymfonyMailerAdapter($smtpServer->withEncryption('tls'));
// Send mail request
$result = $adapter->sendRequest($mail);