PHP code example of axproo / mailer-lib

1. Go to this page and download the library: Download axproo/mailer-lib 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/ */

    

axproo / mailer-lib example snippets


use Axproo\Mailer\Services\MailerService;

$mailer = new MailerService();

$mailer->send(
    '[email protected]',
    'Bienvenue sur notre plateforme',
    'emails/welcome',
    [
        'username' => 'Christian',
        'message' => 'Merci de rejoindre AXPROO 🚀'
    ]
);

mailer()->send(
    '[email protected]',
    'Bienvenue sur Axproo 🎉',
    'emails/welcome',
    [
        'username' => 'Christian',
        'message' => 'Merci d’avoir rejoint notre plateforme.'
    ]
);