Download the PHP package fractal512/plain-smtp-mailer without Composer
On this page you can find all versions of the php package fractal512/plain-smtp-mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fractal512/plain-smtp-mailer
More information about fractal512/plain-smtp-mailer
Files in fractal512/plain-smtp-mailer
Package plain-smtp-mailer
Short Description Laravel 5+ plain SMTP mailer package.
License MIT
Homepage https://github.com/fractal512/plain-smtp-mailer
Informations about the package plain-smtp-mailer
Plain SMTP Mailer for Laravel 5+
Custom mail driver for Laravel 5+ working with SMTP server via a socket.
Installation
The Plain SMTP Mailer can be installed via Composer by requiring the
fractal512/plain-smtp-mailer package:
or add fractal512/plain-smtp-mailer to require section and set the minimum-stability to dev (required for Laravel 5) in your project's composer.json:
then update your packages with composer update or install with composer install.
Registration in Laravel
No need in versions with auto discovery (Laravel 5.5+).
Register the Plain SMTP Mailer Service Provider in the providers key in config/app.php.
for Laravel 5.1+
Configuration
Publish the package mailer.php config file to apply your own settings.
or run (Laravel 8+)
then enter the number of the Fractal512\PlainSmtpMailer\PlainSmtpMailerServiceProvider service provider.
Options in config file refer to options for mail driver in the app .env file:
Usage
You need configured SMTP server with account created on your hosting.
You can use built in Laravel mail functionality with Plain SMTP Mailer, just enable PlainSmtpMailer driver in .env by setting:
and adding all the other needed options in MAIL section as shown in Configuration section above.