PHP code example of ionvv / wp-mail-helper

1. Go to this page and download the library: Download ionvv/wp-mail-helper 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/ */

    

ionvv / wp-mail-helper example snippets


$email_controller = new \WpMailHelper\Email();
$email_controller->sendEmail(
    '[email protected]',                               // $to
    '[email protected]',                                  // $from
    'Email subject',                                      // $subject
    get_stylesheet_directory() . '/emails/template.html', // $message
    'template'                                            // $message_type
);