PHP code example of neosrulez / neos-mailgun
1. Go to this page and download the library: Download neosrulez/neos-mailgun 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/ */
neosrulez / neos-mailgun example snippets
use NeosRulez\Neos\Mailgun\Message;
$message = new Message();
$message->setFrom('[email protected]');
$message->setTo('[email protected]');
$message->setCc('[email protected]');
$message->setBcc('[email protected]');
$message->setSubject('This is the body');
$message->setBody('<strong>This is the body</strong>', 'text/html');
// Desired time of delivery. Note: Messages can be scheduled for a maximum of 3 days in the future.
$message->setDeliveryTime("tomorrow 8:00AM");
$message->setAttachments([
'/data/neos/Data/foo.pdf'
]);
$message->send();