Ejemplo n.º 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');
 }
Ejemplo n.º 2
0
 public function mail()
 {
     // 		$group['isSMTP'] = true;
     // 		$group['smtpAuth'] = true;
     // 		$group['isHTML'] = false;
     // 		$group['smtpSecure'] = 'tls';
     // 		$group['host'] = 'smtp.gmail.com';
     // 		$group['port'] = 587;
     // 		$group['user'] = '******';
     // 		$group['pass'] = '******';
     $assunto = "BF1 - Teste inscrição";
     $mensagem = "Mensagem teste Babita Framework 1 (ÁÂÀÄÇ\$!@&%)";
     $from = array('mail' => '*****@*****.**', 'name' => 'Babita Framework 1');
     $destino = array("aangelomarinho@gmail.com, Adriano Marinho", "fabio23gt@gmail.com, Fábio Assunção");
     $mail = new \Helpers\PhpMailer\Mail();
     $mail->go($assunto, $mensagem, $from, $destino);
 }