PHP code example of aridez / simple-mail-builder

1. Go to this page and download the library: Download aridez/simple-mail-builder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aridez / simple-mail-builder example snippets


use Illuminate\Notifications\Notification;
use Aridez\MailBuilder\Facades\MailBuilder;

class WelcomeMessage extends Notification
{

    [...]

    public function toMail(object $notifiable)
    {
        return MailBuilder::brand('https://i.imgur.com/KO1vcE9.png')->space(15)
            ->title('Welcome ' . $notifiable->name)->space(20)
            ->text('Thank you for signing up for . We\'re really happy to have you! Click the link below to login to your account:')->space(10)
            ->button('Login to Your Account', 'google.es')->space(10)
            ->text('Best regards,')->space(5)
            ->italic('The company team')
            ->

public function toMail(object $notifiable)
{
    return MailBuilder::component('small-text', ['text' => 'This text is passed through the component props now!']);
}

@foreach ($components as $component)
@component($component['view'], $component['props'])
@endcomponent
@endforeach

public function toMail(object $notifiable)
{
    return MailBuilder::theme('blue')->...;
}


    public function toMail(object $notifiable)
    {
        return MailBuilder::
bash
php artisan vendor:publish --provider="Aridez\MailBuilder\Providers\MailBuilderServiceProvider"