Example #1
0
 public function mailTemplate()
 {
     $mail = new \Helpers\PhpMailer\Mail();
     $data = array('title' => 'Babita Framework 1', 'subtitle' => 'Teste com template', 'name' => 'Adriano Marinho', 'link' => '#', 'link_name' => 'Botão');
     $mail->subject("BF1 - email com anexo e template :)");
     $mail->template('teste.html', $data);
     $mail->destination(array("fabio23gt@gmail.com, Fábio Assunção"));
     $mail->attachment('uploads/teste_anexo.png, teste_anexo.png');
     $mail->from(array('mail' => '*****@*****.**', 'name' => 'Babita Framework 1'), false);
     $mail->replyTo(array('mail' => '*****@*****.**', 'name' => 'BF1 Contato novo'));
     $result = $mail->go();
     View::output($result, 'vd');
 }