PHP code example of oligriffiths / emails-component
1. Go to this page and download the library: Download oligriffiths/emails-component 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/ */
oligriffiths / emails-component example snippets
$dispatcher = $this->getObject('com://oligriffiths/emails.dispatcher.email', /* $config, optional*/);
$dispatcher->send(array(
'recipient_email' => '[email protected]',
'subject' => 'My subject',
'content' => "This is my email"
'layout' => 'my_email' //Either supply content OR layout, not both, point 2 see below
));