thienpham/contacts is a Laravel package for hỗ trợ gửi nội dung liên hệ đến email admin.
It currently has 5 GitHub stars and 43 downloads on Packagist (latest version 1.0.2).
Install it with composer require thienpham/contacts.
Discover more Laravel packages by thienpham
or browse all Laravel packages to compare alternatives.
Last updated
Đây là gói ứng dụng dành cho Laravel:
$ composer require thienpham/contacts
.env để cấu hình email.MAIL_CONTACT_CAPTCHA=TRUE để sử dụng Captcha.MAIL_USERNAME và MAIL_PASSWORD chính xác để quá trình gửi mail thành công.
MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=
MAIL_ENCRYPTION=ssl
[email protected]
MAIL_FROM_NAME="Demo From Name"
[email protected]
MAIL_CONTACT_CAPTCHA=TRUE
Thực hiện lệnh php artisan config:clear để làm mới cấu hình mail
action và method sau vào from liên hệ:
action="{{ route('store.thienpham.contact') }}" method="post"
renderCheckCaptcha(env('MAIL_CONTACT_CAPTCHA')) nếu dùng Captcha
root/vendor/thienpham/contacts/resources/views/contact-form-template.php
resources/views
$ php artisan vendor:publish
email-template theo đường dẫn sau:
resources/views/vendor/thienpham-contacts/email-template.blade.php
