ipunkt/laravel-email-verification-interception

Email Verification and Mailer Interception package for controlling email sending.

dev-master 2017-01-20 16:36 UTC

This package is auto-updated.

Last update: 2019-11-22 19:44:18 UTC


README

Do not send any email to an unverified or blacklisted customer. This package helps solving this task.

Latest Stable Version Latest Unstable Version License Total Downloads

Quickstart

composer require ipunkt/laravel-email-verification-interception:dev-master

Add to providers in config/app.php:

\Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider::class,

Installation

Add to your composer.json following lines

"require": {
	"ipunkt/laravel-email-verification-interception": "dev-master"
}

Add \Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider::class, to providers in app/config/app.php.

Run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=config to publish the config.

We ship an activation mail template. For customizing this run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=view.

We also provide migration to create a database table. Laravel automatically migrates it. If you want to customize it just run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=migrations

Configuration

The main configuration settings handle the activation mail stuff.

Activation section

register-event-listening

We can register event listening by default. So every time a Registered event is fired, the email service interacts and sends a mailable for account confirmation.

subject

Mail subject for activation mail. You can change the subject. This subject will be used for the shipped ActivateEmail mailable.

from

You have to set your sender data for the activation mail.

view

The template view for the activation mail sent.

You can customize this view template content by publishing it to your code base by typing php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=view.

User Model

Sometimes the user model has a different model class. You can set it here.