@extends('layouts.app') @section('title_full', __('Connection Settings').' - '.$mailbox->name) @section('body_attrs')@parent data-mailbox_id="{{ $mailbox->id }}"@endsection @section('sidebar') @include('partials/sidebar_menu_toggle') @include('mailboxes/sidebar_menu') @endsection @section('content')
{{ __('Connection Settings') }}
@include('mailboxes/connection_menu') @include('partials/flash_messages')
{{ csrf_field() }}
{!! __("You can read more about fetching emails :%a_begin%here:%a_end%.", ['%a_begin%' => '', '%a_end%' =>'']) !!}
@include('partials/field_error', ['field'=>'in_protocol'])
@include('partials/field_error', ['field'=>'in_server'])
{{--@include('partials/field_error', ['field'=>'in_port'])--}}
@php $in_oauth_enabled = $mailbox->inOauthEnabled(); @endphp
{{--@include('partials/field_error', ['field'=>'in_username'])--}}
@php $active_oauth_provider = ''; if ($in_oauth_enabled) { $active_oauth_provider = $mailbox->oauthGetParam('provider'); } @endphp {{-- Microsoft Exchange --}} @if ($active_oauth_provider != \MailHelper::OAUTH_PROVIDER_GOOGLE)

isOauthProvider(\MailHelper::OAUTH_PROVIDER_MICROSOFT)) class="text-success" @endif>Microsoft Exchange @if (!$mailbox->oauthEnabled()) @if ($mailbox->in_username && $mailbox->in_password && $mailbox->isInUsernameOauth()) – {{ __('Connect') }} @endif @elseif ($mailbox->isOauthProvider(\MailHelper::OAUTH_PROVIDER_MICROSOFT) && $in_oauth_enabled) – {{ __('Disconnect') }} @endif ({{ __('Help') }})

@endif {{-- Google Workspace --}} @if ($active_oauth_provider != \MailHelper::OAUTH_PROVIDER_MICROSOFT)

isOauthProvider(\MailHelper::OAUTH_PROVIDER_GOOGLE)) class="text-success" @endif>Google Workspace @if (!$mailbox->oauthEnabled()) @if ($mailbox->in_username && $mailbox->in_password && $mailbox->isInUsernameOauth()) – {{ __('Connect') }} @endif @elseif ($mailbox->isOauthProvider(\MailHelper::OAUTH_PROVIDER_GOOGLE) && $in_oauth_enabled) – {{ __('Disconnect') }} @endif ({{ __('Help') }})

@endif {{--@include('partials/field_error', ['field'=>'in_password'])--}}
@php $new_fetching_library = config('app.new_fetching_library'); @endphp
@php $in_encryption = old('in_encryption', $mailbox->in_encryption); // Set TLS encryption by default. if ($in_encryption == App\Mailbox::IN_ENCRYPTION_NONE) { if (!$mailbox->inSettingsSaved()) { $in_encryption = App\Mailbox::IN_ENCRYPTION_TLS; } } @endphp @include('partials/field_error', ['field'=>'in_encryption'])
{{ __('Get folders') }} @include('partials/field_error', ['field'=>'in_imap_folders'])
in_validate_cert))checked="checked"@endif >
@include('partials/field_error', ['field'=>'in_validate_cert'])
{{ __("Make sure to save settings before checking connection.") }}
{{ __("Enter IMAP folder name to save outgoing replies if your mail service provider does not do it automatically (Gmail does it), otherwise leave it blank.") }}

@action('mailbox.connection_incoming.after_default_settings', $mailbox)
 
@endsection @section('javascript') @parent mailboxConnectionInit('{{ App\Mailbox::OUT_METHOD_SMTP }}'); mailboxConnectionIncomingInit(); @endsection