PHP code example of marcosdipaolo / mailer

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

    

marcosdipaolo / mailer example snippets


mailer()->send($subject, $mailFrom, $nameFrom, $recipients, $body);

Swift_Mime_SimpleMessage::PRIORITY_HIGHEST; // 1
Swift_Mime_SimpleMessage::PRIORITY_HIGH; // 2
Swift_Mime_SimpleMessage::PRIORITY_NORMAL; // 3
Swift_Mime_SimpleMessage::PRIORITY_LOW; // 4
Swift_Mime_SimpleMessage::PRIORITY_LOWEST; // 5