@extends('layouts.main') @section('title') {{ __('Email Configurations') }} @endsection @section('page-title')

{{ __('Email Configurations') }}

@endsection @section('content')
{!! Form::open(['url' => route('email-configurations-store'), 'data-parsley-validate', 'class' => 'create-form', 'data-success-function'=> "formSuccessFunction"]) !!}
{{ __('Update Configurations') }}
{{-- Mailer --}}
{{-- Mail Host --}}
{{-- Mail Port --}}
{{-- Mail Username --}}
{{-- Mail Password --}}
{{-- Mail Encryption --}}
{{-- Mail Send From --}}
{{-- Save --}}
{!! Form::close() !!}
{{-- Email Configuration Verification --}}
{{ __('Email Configuration Verification') }}
@csrf {{-- Verify Email --}}
{{-- Verify --}}
{{-- Cron Job Instructions --}}
{{ __('Cron Job Setup Instructions') }}
{{ __('Important: Queue Processing Setup') }}

{{ __('To ensure emails are processed properly, you need to set up a cron job on your server.') }}

{{ __('Steps to Add Cron Job:') }}
  1. {{ __('Access your server via SSH or Server Panel Cron Jobs') }}
  2. {{ __('Add the following cron job command:') }}

{{ __('If CURL is installed') }}

* * * * * curl -s "{{env('APP_URL')}}/run-scheduler" > /dev/null 2>&1

{{ __('If CURL is not installed') }}

* * * * * wget -q "{{env('APP_URL')}}/run-scheduler" > /dev/null 2>&1

{{ __('If URL scheduler is not working, use PHP command') }}

* * * * * cd {{base_path()}} && php artisan schedule:run >> /dev/null 2>&1

{{ __('Note:') }}

  • {{ __('Check if') }} "{{env('APP_URL')}}" {{ __('is correct') }}
  • {{ __('***** is a wildcard for the minute, hour, day of month, month, and day of week') }}
  • {{ __('curl or wget is a command-line tool for transferring data with URLs') }}
  • {{ __('> /dev/null 2>&1 is a command to redirect output to /dev/null (discard it) and show errors in the terminal') }}
  • {{ __('If URL-based scheduler fails, use the PHP command method as it directly runs Laravel scheduler') }}
  • {{ __('Replace') }} "{{base_path()}}" {{ __('with your actual project path if needed') }}
  • {{ __('In your server, you may need to adjust the cron job command based on your server configuration') }}
  • {{ __('This cron job runs every minute to process email queues') }}
@endsection @section('script') @endsection