freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.9k stars 481 forks source link

sending code on outbound emails not text #4200

Closed mauriceesp closed 1 week ago

mauriceesp commented 2 weeks ago

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.

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

@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) <{{ $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

mauriceesp commented 2 weeks ago

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 commented 2 weeks ago

PHP 8.3.10

freescout-help commented 2 weeks ago

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.