Merge branch 'develop' into trunk
This commit is contained in:
commit
fc1450d9de
3 changed files with 6 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ class PostController extends Controller
|
|||
'object' => $request->object,
|
||||
'message' => $request->message
|
||||
);
|
||||
Mail::to('ldc@test.com')->send(new SendMail($data));
|
||||
Mail::to(env('MAIL_FROM_ADDRESS', 'rhd@ldc.fr'))->send(new SendMail($data));
|
||||
return redirect()->back()->withSuccess('Votre message à bien été envoyé !');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class SendMail extends Mailable
|
|||
public function build()
|
||||
{
|
||||
return $this->from($this->data['mail'])
|
||||
->subject($this->data['object'])
|
||||
->subject(config('app.name') ."- Contact - ". $this->data['object'])
|
||||
->with('data', $this->data)
|
||||
->markdown('emails.send');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
@component('mail::message')
|
||||
# Mme/M. {{ $data['name'] }} {{ $data['firstname'] }}.
|
||||
{{ $data['mail'] }}
|
||||
|
||||
# {{ $data['object'] }}
|
||||
|
||||
{{ $data['message'] }}
|
||||
@endcomponent
|
||||
@endcomponent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue