<?php require '../vendor/autoload.php'; // one column, without header $csvPath = 'files/csv/one-column-mailing-list.csv'; $htmlPath = 'files/html/mail.html'; $txtPath = 'files/html/mail.html'; // to, text, html are prepared by the send method $options = array('from' => '*****@*****.**', 'to' => array('*****@*****.**'), 'cc' => array(), 'bcc' => array(), 'subject' => 'Test', 'text' => 'Test email', 'html' => '<p>Test email</p>'); $bulkmail = new \Colorfield\Bulkmail\BulkMail($csvPath); $bulkmail->send($htmlPath, $txtPath, $options);
<?php require '../vendor/autoload.php'; // one column, without header $csvPath = 'files/csv/one-column-mailing-list.csv'; $bulkmail = new \Colorfield\Bulkmail\BulkMail($csvPath); $bulkmail->clean(false); // @todo multiple columns, with header // @todo add did you mean addresses // @todo add grade