https://github.com/majid-razzaq/send-email-laravel-mailtrap
This project uses Mailtrap to send emails when a user submits a form. The data is saved in a MySQL database, and the email can be viewed on the Mailtrap website.
https://github.com/majid-razzaq/send-email-laravel-mailtrap
contact-form email-form email-sender form laravel-email-template laravel11 mail-send mailtrap mailtrap-io mysql-database send-email
Last synced: 7 months ago
JSON representation
This project uses Mailtrap to send emails when a user submits a form. The data is saved in a MySQL database, and the email can be viewed on the Mailtrap website.
- Host: GitHub
- URL: https://github.com/majid-razzaq/send-email-laravel-mailtrap
- Owner: Majid-Razzaq
- Created: 2024-09-08T14:35:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-08T15:27:42.000Z (about 1 year ago)
- Last Synced: 2025-03-27T13:48:39.345Z (7 months ago)
- Topics: contact-form, email-form, email-sender, form, laravel-email-template, laravel11, mail-send, mailtrap, mailtrap-io, mysql-database, send-email
- Language: CSS
- Homepage:
- Size: 402 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Laravel Mailtrap Email Integration
## Requirements
- Laravel = 11.20.0
- PHP = 8.2.12
- Composer Version = 2.7.7## How to Use
1) Configure the Email in the .env File
- MAIL_MAILER=smtp
- MAIL_HOST=smtp.mailtrap.io
- MAIL_PORT=465 # TLS: 587 | SSL: 465
- MAIL_USERNAME=your-mailtrap-username
- MAIL_PASSWORD=your-mailtrap-password
- MAIL_ENCRYPTION=ssl # encryption method: (tls | SSL)2) Configure the Email in App/Http/Controllers/FormController.php
Mail::to('your-email@example.com')->send(new SendMail($mailData));## Getting Started
- Clone the repository.
- Run composer install to install dependencies.
- Set up your database configuration in the .env file.
- Run php artisan migrate to create the necessary database tables.
- Customize the application as needed.```javascript
composer install
``````javascript
php artisan migrate
``````javascript
php artisan serve
```## Front-End Template
