LaravelPackages.net
Acme Inc.
Toggle sidebar
taskuniverse/contact-form

Simple contact template via smtp for laravel

17
1
1.0.3
About taskuniverse/contact-form

taskuniverse/contact-form is a Laravel package for simple contact template via smtp for laravel. It currently has 1 GitHub stars and 17 downloads on Packagist (latest version 1.0.3). Install it with composer require taskuniverse/contact-form. Discover more Laravel packages by taskuniverse or browse all Laravel packages to compare alternatives.

Last updated

Contact form for Laravel

This composer package offers a functional contact form template via smtp.

Installation

composer require taskuniverse/contact-form
composer update
composer dump-autoload
Config .env file
php artisan config:clear

Config .env file

For gmail accounts

Enable in your gmail account the access to third party apps.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=YOUR-EMAIL
MAIL_FROM_NAME=EMAIL-NAME
MAIL_PASSWORD=YOUR-PASSWORD-EMAIL
MAIL_ENCRYPTION=tls

For Outlook accounts

Enviroment var 'MAIL_FROM_NAME' is optional.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.office365.com
MAIL_PORT=587
MAIL_FROM_ADDRESS=YOUR-OUTLOOK-EMAIL
MAIL_USERNAME=YOUR-OUTLOOK-EMAIL
MAIL_PASSWORD=YOUR-PASSWORD-EMAIL
MAIL_ENCRYPTION=tls

Modify views

If you want to customer the contact form partials, you can run:

php artisan vendor:publish --provider="Taskuniverse\ContactForm\ContactFormServiceProvider"

Usage

Navigate to <host>/contact

Tested

  • php 7.2
  • laravel 5.8

Preview

contact-form-preview

Star History Chart