Frezka - Documentation

Configuration

⚙️ Configuration – Mail Setup

Why is Mail Configuration Required?

If your Laravel application includes features such as password resets, booking confirmations, notifications, or contact forms, the system needs to send emails.

To make this work, you must properly configure the mail settings.

Laravel stores sensitive system settings like email credentials inside a special configuration file called:

.env

📩 Steps to Configure Mail in Laravel

Step 1: Open the .env File

Locate the .env file in the root directory of your Laravel project and open it in a code editor.

Add or update the following mail configuration:

MAIL_MAILER="smtp"
MAIL_HOST="your_mail_host"
MAIL_PORT="your_mail_port"
MAIL_USERNAME="your_email_id"
MAIL_PASSWORD="your_email_password"
MAIL_ENCRYPTION="tls_or_ssl"

Step 2: Understand Each Mail Setting

SettingDescription
MAIL_MAILERMail driver, usually set to smtp
MAIL_HOSTYour email provider’s SMTP server (e.g., smtp.gmail.com)
MAIL_PORTSMTP port number (commonly 587, 465, or 2525)
MAIL_USERNAMEThe email address used to send emails
MAIL_PASSWORDYour email password or app-specific password
MAIL_ENCRYPTIONSecurity type — usually tls or ssl

📝 Example: Gmail Mail Configuration

MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=yourname@gmail.com
MAIL_PASSWORD=your_app_password
MAIL_ENCRYPTION=tls

⚠️ Important: If you are using Gmail, you must generate an App Password instead of using your normal Gmail password.

✅ Final Step

After saving the .env file:

  1. Restart your server (if running)
  2. Clear config cache (recommended):
php artisan config:clear
php artisan cache:clear

Your Laravel application should now be able to send emails successfully.

🛠️ App Configuration Settings

You can also update general website/app information from the Admin Panel, such as:

  • Application Name
  • Footer Text
  • Copyright Text
  • Helpline Number
  • Inquiry Email
  • Site Description
  • Website Logos

These settings help personalize the platform according to your business branding.