Support the ongoing development of →
Requests Blade Jobs
Last updated 1 month ago.

You can use mail function:

Here you can find a complete tutorial:

Simply you have to set: app/config/mail.php file. Then create a controller with inside a code like this:

$email = [email protected]
$emailData = array('detail'=>'my detail', 'name'=> 'my name');
Mail::send('emails.emailModel', $emailData, function($message) use ($email)
      $message->to($email,  'Name')->subject('My subject');

It calls automatically a file in view/emails/emailModel.blade.php

<!DOCTYPE html>
<html lang="en-US">
    <meta charset="utf-8">
      Your sign up details are below:
    <div>{{ $detail }}</div>
    <div>{{ $name}} </div>

That's all ;)

Last updated 1 month ago.

Sign in to participate in this thread!


Your banner here too?

cuttimutti cuttimutti cuttimutti Joined 14 Apr 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 - All rights reserved.