freescout icon indicating copy to clipboard operation
freescout copied to clipboard

sending code on outbound emails not text

Open mauriceesp opened this issue 1 year ago • 3 comments

PHP version: FreeScout version: Database: MySQL / PostgreSQL Are you using CloudFlare: Yes / No yes Are you using non-official modules: Yes / No

we are getting code instead of text when sending outbound.

@foreach ($threads as $thread) @if ($loop->index == 1)

@endif

@if (!$loop->first)

{{ $thread->getFromName($mailbox) }}@if ($is_forwarded && $thread->from) <{{ $thread->from }}>@endif {{--if ($loop->last){!! __(':person sent a message', ['person' => ''.htmlspecialchars($thread->getFromName($mailbox)).'']) !!}@else {!! __(':person replied', ['person' => ''.htmlspecialchars($thread->getFromName($mailbox)).'']) !!}@endif--}} @if ($thread->getCcArray()) Cc: {{ implode(', ', $thread->getCcArray() )}} @endif {{ App\Customer::dateFormat($thread->created_at, 'M j, H:i') }}

@endif

@if ($thread->source_via == App\Thread::PERSON_USER && $mailbox->before_reply && $loop->first) {{ $mailbox->before_reply }}

@endif {!! $thread->body !!} @action('reply_email.before_signature', $thread, $loop, $threads, $conversation, $mailbox, $threads_count) @if ($thread->source_via == App\Thread::PERSON_USER && \Eventy::filter('reply_email.include_signature', true, $thread))
{!! $conversation->getSignatureProcessed(['thread' => $thread]) !!} @endif @action('reply_email.after_signature', $thread, $loop, $threads, $conversation, $mailbox, $threads_count)

{{--@if ($loop->count > 1 && $loop->last)

@endif--}}

@endforeach @if (\App\Option::get('email_branding'))

{!! __('Support powered by :app_name — Free open source help desk & shared mailbox', ['app_name' => ''.\Config::get('app.name').'']) !!}

@endif

@foreach ($threads as $thread) @if ($loop->index == 1) @endif @if (!$loop->first) {{ $thread->getFromName($mailbox) }}@if ($is_forwarded && $thread->from) from }}>@endif {{--if ($loop->last){!! __(':person sent a message', ['person' => ''.htmlspecialchars($thread->getFromName($mailbox)).'']) !!}@else {!! __(':person replied', ['person' => ''.htmlspecialchars($thread->getFromName($mailbox)).'']) !!}@endif--}} @if ($thread->getCcArray()) Cc: {{ implode(', ', $thread->getCcArray() )}} @endif {{ App\Customer::dateFormat($thread->created_at, 'M j, H:i') }} @endif @if ($thread->source_via == App\Thread::PERSON_USER && $mailbox->before_reply && $loop->first) {{ $mailbox->before_reply }}

@endif {!! $thread->body !!} @action('reply_email.before_signature', $thread, $loop, $threads, $conversation, $mailbox, $threads_count) @if ($thread->source_via == App\Thread::PERSON_USER && \Eventy::filter('reply_email.include_signature', true, $thread)) {!! $conversation->getSignatureProcessed(['thread' => $thread]) !!} @endif @action('reply_email.after_signature', $thread, $loop, $threads, $conversation, $mailbox, $threads_count) {{--@if ($loop->count > 1 && $loop->last) @endif--}} @endforeach @if (\App\Option::get('email_branding')) {!! __('Support powered by :app_name — Free open source help desk & shared mailbox', ['app_name' => ''.\Config::get('app.name').'']) !!} @endif

mauriceesp avatar Aug 27 '24 15:08 mauriceesp

PHP version: FreeScout version: \\1.8.150 Database: MySQL / PostgreSQL: \\my sql Are you using CloudFlare: Yes / No\\ yes Are you using non-official modules: Yes / No

I see you sent a file , can you explain the reason behind issue and a little about the fix action

mauriceesp avatar Aug 27 '24 16:08 mauriceesp

PHP 8.3.10

mauriceesp avatar Aug 27 '24 16:08 mauriceesp

We've never seen such an issue and it's hard to tell what can be the reason. Someone need to check it on your server.

freescout-help avatar Aug 29 '24 12:08 freescout-help