mehedimi / laravel-amp-mail
Send amp mail through laravel mail
Installs: 1 544
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- laravel/framework: >=5.5
This package is auto-updated.
Last update: 2024-10-29 06:05:50 UTC
README
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'); } }