The Mail component allows you to describe an email and send it whenever needed.
For more details refer to this link.
Containers MAY or MAY NOT have one or more Mail.
Ship may contain general Mails.
- All Notifications MUST extend from
- Email Templates must be placed inside the Mail directory in a Templates directory
Example: a simple Mail
Usage from an Action:
Notifications can be sent from Actions or Tasks using the
Templates should be placed inside a folder
Templates inside the
To access a Mail template (same like accessing a web view) you must call the container name then the view name.
In the example below we're using the
user-registered.blade.php template in the User Container.
.env file and set the From mail and address, this will be used globally whenever the
from function is not called in the Mail.
To use different email address in some classes add
->to($this->email, $this->name) to the
build function in your Mail class.
By default Apiato is configured to use Log Driver
MAIL_DRIVER=log, you can change that from the
To queue a notification you should use
Illuminate\Bus\Queueable and implement