mehedimi/laravel-amp-mail
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/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 |