PHP code example of webware / webware-mailer
1. Go to this page and download the library: Download webware/webware-mailer 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/ */
webware / webware-mailer example snippets
use Webware\Mailer\Container\MailerFactory;
use Webware\Mailer\Message;
/** @var Psr\Container\ContainerInterface $container */
$mailer = (new MailerFactory())($container);
$message = new Message()->withTo('[email protected]')
->withFrom('[email protected]')
->withSubject('Hello')
->withBody('Message body');
$mailer->send($message);