Downloads
Stars
Version
This composer package offers a functional contact form template via smtp.
composer require taskuniverse/contact-form
composer update
composer dump-autoload
Config .env file
php artisan config:clear
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
If you want to customer the contact form partials, you can run:
php artisan vendor:publish --provider="Taskuniverse\ContactForm\ContactFormServiceProvider"
Navigate to <host>/contact