public function testMailRun() { $raw = new Letter(); $raw->setType('text/plain'); $raw->setData('This mail was automatically sent running the unit tests of Core without render.'); $render = new Html($this->letter); $html = new Letter(); $html->setData($render->run(null, ['title' => 'Core Mail', 'custom' => 'This mail was automatically sent running the unit tests of Core with the render.'])); $attachment = new Attachment('Invoice.pdf'); $attachment->setType('application/pdf'); $attachment->setData($this->attachment); $mail = new Mail(['*****@*****.**']); $mail->setSender('*****@*****.**', 'Developers'); $mail->setSubject('Core Mail'); $mail->addLetter($raw); $mail->addLetter($html); $mail->addAttachment($attachment); $mail->run(); }