LaravelPackages.net
Acme Inc.
Toggle sidebar
mehedimi/laravel-amp-mail

Send amp mail through laravel mail

2.531
3
2.0.0
About mehedimi/laravel-amp-mail

mehedimi/laravel-amp-mail is a Laravel package for send amp mail through laravel mail. It currently has 3 GitHub stars and 2.531 downloads on Packagist (latest version 2.0.0). Install it with composer require mehedimi/laravel-amp-mail. Discover more Laravel packages by mehedimi or browse all Laravel packages to compare alternatives.

Last updated

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');
    }
}

Star History Chart