PHP code example of pralhadstha / php-mailer-gateways
1. Go to this page and download the library: Download pralhadstha/php-mailer-gateways 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/ */
pralhadstha / php-mailer-gateways example snippets
use Pralhadstha\Mail\Mail;
use Symfony\Component\Mime\Email;
$email = (new Email())
->from('[email protected]')
->to('[email protected]')
->subject('Hello')
->text('Hi there');
Mail::send($email); // uses the "default" mailer
Mail::send($email, mailer: 'ses'); // or a specific named mailer