Skip to content

Instantly share code, notes, and snippets.

@tararoutray
Last active September 26, 2021 09:43
Show Gist options
  • Save tararoutray/191ecf9560074fb8e1314e243bc1f8c0 to your computer and use it in GitHub Desktop.
Save tararoutray/191ecf9560074fb8e1314e243bc1f8c0 to your computer and use it in GitHub Desktop.
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class HelloEmail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
/**
* Replace the "from" field with your valid sender email address.
* The "email-template" is the name of the file present inside
* "resources/views" folder. If you don't have this file, then
* create it.
*/
return $this->from("[email protected]")->view('email-template');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment