New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mehedimi/laravel-amp-mail

Send amp mail through laravel mail
4,150 3
Install
composer require mehedimi/laravel-amp-mail
Latest Version:2.0.0
Laravel:5 · 6 · 7
License:MIT
Last Updated:Jul 30, 2021
Links: GitHub  ·  Packagist
Maintainer: mehedimi

Laravel AMP Mail

Send amp mail through your Laravel app

Installation

composer require mehedimi/laravel-amp-mail

Quick Usages

To send amp email just use Mehedi\AmpMail\Mimes\Amp trait on your mail class and load amp view by using amp method.

Example

<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Mehedi\AmpMail\Mimes\Amp;

class WelcomeEmail extends Mailable
{
    use Queueable, SerializesModels, Amp;

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->amp('amp')
            ->view('html')
            ->with('name', 'Mehedi Hasan');
    }
}

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

655,942,320 9,702
laravel/framework

The Laravel Framework.

617,629,957 34,997
laravel/tinker

Powerful REPL for the Laravel framework.

524,145,802 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

442,489,569 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664

Version History

Version Released Laravel License
2.0.0 >=5.5 MIT
1.0.0 >=5.5 MIT