Created
March 3, 2016 18:04
-
-
Save gpfiel/8b1c613da07ebc1a221d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dataArray = array('nome_vendedor' => $this->proposta->vendedor->nome, | |
'nome_comprador' => $this->proposta->comprador->nome, | |
'proposta' => $this->proposta->mensagem, | |
'mensagem' => $request->input("resposta"), | |
'linkAnuncio' => url('anuncio/'.$this->proposta->anuncio->slug)); | |
$email_comprador = $this->proposta->comprador->email; | |
Mail::send('email.responderProposta', $dataArray, function ($m) use ($email_comprador) { | |
$m->from('[email protected]', 'BidCarros Portal'); | |
$m->to($email_comprador, 'Sistema BidCarros - Portal')->subject('BidCarros - Resposta sobre proposta'); | |
}); | |
if( count(Mail::failures()) > 0 ) { | |
$msg = false; | |
} else { | |
$msg = true; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment